OSDN Git Service

block: wake up all tasks blocked in get_request()
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / block / blk-core.c
index 1196585..f5f1a55 100644 (file)
@@ -526,8 +526,8 @@ void blk_set_queue_dying(struct request_queue *q)
 
                blk_queue_for_each_rl(rl, q) {
                        if (rl->rq_pool) {
-                               wake_up(&rl->wait[BLK_RW_SYNC]);
-                               wake_up(&rl->wait[BLK_RW_ASYNC]);
+                               wake_up_all(&rl->wait[BLK_RW_SYNC]);
+                               wake_up_all(&rl->wait[BLK_RW_ASYNC]);
                        }
                }
        }