]> git.baikalelectronics.ru Git - kernel.git/commit
block, cfq: fix empty queue crash caused by request merge
authorShaohua Li <shaohua.li@intel.com>
Fri, 16 Dec 2011 13:04:23 +0000 (14:04 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 16 Dec 2011 13:04:23 +0000 (14:04 +0100)
commit0960d86d73623aa1c8690674ee2425db8151ac9d
tree90e4768d9d984d94cb45464b49b9c62b93ffba9f
parent8b26999e7ad3022e64f5cb8be5d7efc43f3a02f1
block, cfq: fix empty queue crash caused by request merge

All requests of a queue could be merged to other requests of other queue.
Such queue will not have request in it, but it's in service tree. This
will cause kernel oops.
I encounter a BUG_ON() in cfq_dispatch_request() with next patch, but the
issue should exist without the patch.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/cfq-iosched.c