]> Pileus Git - ~andy/linux/blobdiff - block/blk-exec.c
netconf: add the handler to dump entries
[~andy/linux] / block / blk-exec.c
index c88202f973d944f7e9c847b13d48c8ce24c87230..e7062139612914b95917405fc3da52e4498f066d 100644 (file)
@@ -121,9 +121,9 @@ int blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk,
        /* Prevent hang_check timer from firing at us during very long I/O */
        hang_check = sysctl_hung_task_timeout_secs;
        if (hang_check)
-               while (!wait_for_completion_timeout(&wait, hang_check * (HZ/2)));
+               while (!wait_for_completion_io_timeout(&wait, hang_check * (HZ/2)));
        else
-               wait_for_completion(&wait);
+               wait_for_completion_io(&wait);
 
        if (rq->errors)
                err = -EIO;