fs/nfs: Use fatal_signal_pending instead of signal_pending
authorzhouchuangao <zhouchuangao@vivo.com>
Mon, 10 May 2021 02:34:37 +0000 (19:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Jun 2021 07:00:35 +0000 (09:00 +0200)
commit1fbbcd1752ff4fbfed3752a5d52e518625e660d7
treea69c030531c9a76a2dde076a09ab5aef933db15f
parent1b364f8ede200e79e25df0df588fcedc322518fb
fs/nfs: Use fatal_signal_pending instead of signal_pending

commit bb002388901151fe35b6697ab116f6ed0721a9ed upstream.

We set the state of the current process to TASK_KILLABLE via
prepare_to_wait(). Should we use fatal_signal_pending() to detect
the signal here?

Fixes: b4868b44c562 ("NFSv4: Wait for stateid updates after CLOSE/OPEN_DOWNGRADE")
Signed-off-by: zhouchuangao <zhouchuangao@vivo.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c