diff options
Diffstat (limited to 'net/sunrpc/sched.c')
-rw-r--r-- | net/sunrpc/sched.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index 00a1a2acd587..3341d8962786 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/smp.h> | 18 | #include <linux/smp.h> |
19 | #include <linux/spinlock.h> | 19 | #include <linux/spinlock.h> |
20 | #include <linux/mutex.h> | 20 | #include <linux/mutex.h> |
21 | #include <linux/freezer.h> | ||
21 | 22 | ||
22 | #include <linux/sunrpc/clnt.h> | 23 | #include <linux/sunrpc/clnt.h> |
23 | 24 | ||
@@ -231,7 +232,7 @@ static int rpc_wait_bit_killable(void *word) | |||
231 | { | 232 | { |
232 | if (fatal_signal_pending(current)) | 233 | if (fatal_signal_pending(current)) |
233 | return -ERESTARTSYS; | 234 | return -ERESTARTSYS; |
234 | schedule(); | 235 | freezable_schedule(); |
235 | return 0; | 236 | return 0; |
236 | } | 237 | } |
237 | 238 | ||