]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "blk-mq: Micro-optimize bt_get()"
authorJens Axboe <axboe@fb.com>
Mon, 15 Dec 2014 15:30:26 +0000 (08:30 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 15 Dec 2014 15:30:26 +0000 (08:30 -0700)
commit55ab1bacdcb6e0d989a91fa71b0a0e145e1c38ae
tree6bfdbddaf04501ac9edcf6c526e1e54dd00444b8
parentc627d3709b083a20728e786e5c594248e36e583c
Revert "blk-mq: Micro-optimize bt_get()"

This reverts commit 66d547d0ac188bd2b149ff7f50cc2b96e4dc8fec.

The optimization is only really safe for a single queue, otherwise
'bs' and 'bt' can indeed change, and if we don't do a finish_wait()
for each loop, we'll potentially change the wait structure and
corrupt task wait list.

Reported-by: Jan Kara <jack@suse.cz>
block/blk-mq-tag.c