block: make every barrier action optional
authorTejun Heo <tj@kernel.org>
Fri, 28 Nov 2008 04:32:04 +0000 (13:32 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 29 Dec 2008 07:28:45 +0000 (08:28 +0100)
commitf671620e7d895af221bdfeda751d54fa55ed9546
treebeeb843a4a356d94b6b4faec97e078b2a4ad1f09
parenta7384677b2f4cd40948fd7ce024ba5e1821444ba
block: make every barrier action optional

In all barrier sequences, the barrier write itself was always assumed
to be issued and thus didn't have corresponding control flag.  This
patch adds QUEUE_ORDERED_DO_BAR and unify action mask handling in
start_ordered() such that any barrier action can be skipped.

This patch doesn't introduce any visible behavior changes.

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