]> 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)
commit775a207260c8eb73cc21ac294f3838c6ff56d05a
tree6bfdbddaf04501ac9edcf6c526e1e54dd00444b8
parent5145413e43a492d75ff72d36c3ba0fb39667af53
Revert "blk-mq: Micro-optimize bt_get()"

This reverts commit 7caf18b64137d03603f32ec3c9e47e1197495e12.

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