Files
linux/block
James Bottomley 5e4c1dbf52 block: add proper state guards to __elv_next_request
commit 0a58e077eb upstream.

blk_cleanup_queue() calls elevator_exit() and after this, we can't
touch the elevator without oopsing.  __elv_next_request() must check
for this state because in the refcounted queue model, we can still
call it after blk_cleanup_queue() has been called.

This was reported as causing an oops attributable to scsi.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-06-23 15:24:01 -07:00
..
2010-10-28 21:44:11 -07:00
2009-10-03 20:52:01 +02:00
2009-10-03 20:52:01 +02:00