]> git.baikalelectronics.ru Git - kernel.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)
commit1470e343e4c8c6621ef0be2c2b12a19a3dd92467
treebb43f43891a3154741bb6a116dc2956342160f15
parent5bdfb5e7710192e4126ebae8f0c6cfc9b4289726
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