]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
block: simplify empty barrier implementation
authorTejun Heo <tj@kernel.org>
Fri, 28 Nov 2008 04:32:06 +0000 (13:32 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 29 Dec 2008 07:28:45 +0000 (08:28 +0100)
commit58eea927d2de43dc6f03d1ba2c46e55854b31540
treebb43f43891a3154741bb6a116dc2956342160f15
parent8f11b3e99a1136fcbb67316c3260f085299c0bff
block: simplify empty barrier implementation

Empty barrier required special handling in __elv_next_request() to
complete it without letting the low level driver see it.

With previous changes, barrier code is now flexible enough to skip the
BAR step using the same barrier sequence selection mechanism.  Drop
the special handling and mask off q->ordered from start_ordered().

Remove blk_empty_barrier() test which now has no user.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-barrier.c
block/elevator.c
include/linux/blkdev.h