]> git.baikalelectronics.ru Git - kernel.git/commit
elevator: check for ELEVATOR_INSERT_SORT_MERGE in !elvpriv case too
authorJens Axboe <jaxboe@fusionio.com>
Thu, 21 Apr 2011 17:28:35 +0000 (19:28 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 21 Apr 2011 17:28:35 +0000 (19:28 +0200)
commitea24fc1b69637978cac9097a327c726b2a52bbe6
treef159c777a489c6ac3721ba1f1cadbe2d86b19fa5
parent8d43b82d1f918aa602acbcf19399de1f8d60f868
elevator: check for ELEVATOR_INSERT_SORT_MERGE in !elvpriv case too

The sort insert is the one that goes to the IO scheduler. With
the SORT_MERGE addition, we could bypass IO scheduler setup
but still ask the IO scheduler to insert the request. This would
cause an oops on switching IO schedulers through the sysfs
interface, unless the disk just happened to be idle while it
occured.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/elevator.c