diff options
Diffstat (limited to 'block/blk-exec.c')
-rw-r--r-- | block/blk-exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-exec.c b/block/blk-exec.c index 74638ec234c8..f634de772b0c 100644 --- a/block/blk-exec.c +++ b/block/blk-exec.c | |||
@@ -120,9 +120,9 @@ int blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk, | |||
120 | /* Prevent hang_check timer from firing at us during very long I/O */ | 120 | /* Prevent hang_check timer from firing at us during very long I/O */ |
121 | hang_check = sysctl_hung_task_timeout_secs; | 121 | hang_check = sysctl_hung_task_timeout_secs; |
122 | if (hang_check) | 122 | if (hang_check) |
123 | while (!wait_for_completion_timeout(&wait, hang_check * (HZ/2))); | 123 | while (!wait_for_completion_io_timeout(&wait, hang_check * (HZ/2))); |
124 | else | 124 | else |
125 | wait_for_completion(&wait); | 125 | wait_for_completion_io(&wait); |
126 | 126 | ||
127 | if (rq->errors) | 127 | if (rq->errors) |
128 | err = -EIO; | 128 | err = -EIO; |