]> 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)
commitdecf4ab344492716639df94ae54c3cd3dde8ad2c
tree90e4768d9d984d94cb45464b49b9c62b93ffba9f
parent40a8e50d11faa624900a17095d58c30d029ce401
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