block: Adjust elv_iosched_show to return "none" for bio-based DM
authorMike Snitzer <snitzer@redhat.com>
Mon, 24 May 2010 07:07:32 +0000 (09:07 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 24 May 2010 07:07:32 +0000 (09:07 +0200)
commite36f724b4ae70e443a7d152929b60059cbfa1a26
tree9eed1cf285d4693c1e239315f629a1a7a81df4e9
parent80b15c7389caa81a3860f9fc2ee47ec0ea572a63
block: Adjust elv_iosched_show to return "none" for bio-based DM

Bio-based DM doesn't use an elevator (queue is !blk_queue_stackable()).

Longer-term DM will not allocate an elevator for bio-based DM.  But even
then there will be small potential for an elevator to be allocated for
a request-based DM table only to have a bio-based table be loaded in the
end.

Displaying "none" for bio-based DM will help avoid user confusion.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/elevator.c