diff options
Diffstat (limited to 'net/sunrpc/sched.c')
-rw-r--r-- | net/sunrpc/sched.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
250 | } | 250 | } |
251 | EXPORT_SYMBOL_GPL(rpc_destroy_wait_queue); | 251 | EXPORT_SYMBOL_GPL(rpc_destroy_wait_queue); |
252 | 252 | ||
253 | static int rpc_wait_bit_killable(struct wait_bit_key *key) | 253 | static int rpc_wait_bit_killable(struct wait_bit_key *key, int mode) |
254 | { | 254 | { |
255 | if (fatal_signal_pending(current)) | ||
256 | return -ERESTARTSYS; | ||
257 | freezable_schedule_unsafe(); | 255 | freezable_schedule_unsafe(); |
256 | if (signal_pending_state(mode, current)) | ||
257 | return -ERESTARTSYS; | ||
258 | return 0; | 258 | return 0; |
259 | } | 259 | } |
260 | 260 | ||