X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=net%2Fsunrpc%2Fsched.c;h=73ad57a59989cb9234d06c1d399e02408e50c7d3;hb=88f3f8241476a2a96dbb10c7b8c3a1063a9334c0;hp=f14f24ee998344f5c356ef49e3b3fc52d581a39c;hpb=197a4f4b063e4e7a603ff1de56b3cf0400fabc30;p=firefly-linux-kernel-4.4.55.git diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index f14f24ee9983..73ad57a59989 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c @@ -250,11 +250,11 @@ void rpc_destroy_wait_queue(struct rpc_wait_queue *queue) } EXPORT_SYMBOL_GPL(rpc_destroy_wait_queue); -static int rpc_wait_bit_killable(struct wait_bit_key *key) +static int rpc_wait_bit_killable(struct wait_bit_key *key, int mode) { - if (fatal_signal_pending(current)) - return -ERESTARTSYS; freezable_schedule_unsafe(); + if (signal_pending_state(mode, current)) + return -ERESTARTSYS; return 0; }