]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: fix potential hang if rolling wakeup depth is too high
authorJens Axboe <axboe@fb.com>
Tue, 7 Oct 2014 14:39:20 +0000 (08:39 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 7 Oct 2014 14:39:20 +0000 (08:39 -0600)
commitd8a19461683bdec74535285d3dc9c661feb29b78
treee73fa24015b0a494fbe9dab8a1e9b3460c935b87
parentc900395069278fbbeba43ad3773c1084b01b6ec6
blk-mq: fix potential hang if rolling wakeup depth is too high

We currently divide the queue depth by 4 as our batch wakeup
count, but we split the wakeups over BT_WAIT_QUEUES number of
wait queues. This defaults to 8. If the product of the resulting
batch wake count and BT_WAIT_QUEUES is higher than the device
queue depth, we can get into a situation where a task goes to
sleep waiting for a request, but never gets woken up.

Reported-by: Bart Van Assche <bvanassche@acm.org>
Fixes: 2c34d8b4324ef
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-tag.c