X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=net%2Fsunrpc%2Fsched.c;h=73ad57a59989cb9234d06c1d399e02408e50c7d3;hb=refs%2Fheads%2Fkaro-tx6-stable;hp=f14f24ee998344f5c356ef49e3b3fc52d581a39c;hpb=c34e6e0bd5d729948119d4b3e15b075ec0b80d6f;p=karo-tx-linux.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; }