block: implement blk_queue_bypass_start/end()
authorTejun Heo <tj@kernel.org>
Mon, 5 Mar 2012 21:14:58 +0000 (13:14 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 20:27:21 +0000 (21:27 +0100)
commitd732580b4eb31553c63744a47d590f770cafb8f0
treeea4e8e21df1b639603693e6f5fdfc5a620cd8737
parentb2fab5acd28ead6f0dd6c3996ba23f0ef1772f15
block: implement blk_queue_bypass_start/end()

Rename and extend elv_queisce_start/end() to
blk_queue_bypass_start/end() which are exported and supports nesting
via @q->bypass_depth.  Also add blk_queue_bypass() to test bypass
state.

This will be further extended and used for blkio_group management.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk.h
block/elevator.c
include/linux/blkdev.h