diff options
author | Tejun Heo <tj@kernel.org> | 2008-11-27 23:32:04 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-12-29 02:28:45 -0500 |
commit | f671620e7d895af221bdfeda751d54fa55ed9546 (patch) | |
tree | beeb843a4a356d94b6b4faec97e078b2a4ad1f09 /include/linux/blkdev.h | |
parent | a7384677b2f4cd40948fd7ce024ba5e1821444ba (diff) |
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>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 5c92b4432399..b044267009ed 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -526,12 +526,14 @@ enum { | |||
526 | QUEUE_ORDERED_BY_DRAIN = 0x01, | 526 | QUEUE_ORDERED_BY_DRAIN = 0x01, |
527 | QUEUE_ORDERED_BY_TAG = 0x02, | 527 | QUEUE_ORDERED_BY_TAG = 0x02, |
528 | QUEUE_ORDERED_DO_PREFLUSH = 0x10, | 528 | QUEUE_ORDERED_DO_PREFLUSH = 0x10, |
529 | QUEUE_ORDERED_DO_BAR = 0x20, | ||
529 | QUEUE_ORDERED_DO_POSTFLUSH = 0x40, | 530 | QUEUE_ORDERED_DO_POSTFLUSH = 0x40, |
530 | QUEUE_ORDERED_DO_FUA = 0x80, | 531 | QUEUE_ORDERED_DO_FUA = 0x80, |
531 | 532 | ||
532 | QUEUE_ORDERED_NONE = 0x00, | 533 | QUEUE_ORDERED_NONE = 0x00, |
533 | 534 | ||
534 | QUEUE_ORDERED_DRAIN = QUEUE_ORDERED_BY_DRAIN, | 535 | QUEUE_ORDERED_DRAIN = QUEUE_ORDERED_BY_DRAIN | |
536 | QUEUE_ORDERED_DO_BAR, | ||
535 | QUEUE_ORDERED_DRAIN_FLUSH = QUEUE_ORDERED_DRAIN | | 537 | QUEUE_ORDERED_DRAIN_FLUSH = QUEUE_ORDERED_DRAIN | |
536 | QUEUE_ORDERED_DO_PREFLUSH | | 538 | QUEUE_ORDERED_DO_PREFLUSH | |
537 | QUEUE_ORDERED_DO_POSTFLUSH, | 539 | QUEUE_ORDERED_DO_POSTFLUSH, |
@@ -539,7 +541,8 @@ enum { | |||
539 | QUEUE_ORDERED_DO_PREFLUSH | | 541 | QUEUE_ORDERED_DO_PREFLUSH | |
540 | QUEUE_ORDERED_DO_FUA, | 542 | QUEUE_ORDERED_DO_FUA, |
541 | 543 | ||
542 | QUEUE_ORDERED_TAG = QUEUE_ORDERED_BY_TAG, | 544 | QUEUE_ORDERED_TAG = QUEUE_ORDERED_BY_TAG | |
545 | QUEUE_ORDERED_DO_BAR, | ||
543 | QUEUE_ORDERED_TAG_FLUSH = QUEUE_ORDERED_TAG | | 546 | QUEUE_ORDERED_TAG_FLUSH = QUEUE_ORDERED_TAG | |
544 | QUEUE_ORDERED_DO_PREFLUSH | | 547 | QUEUE_ORDERED_DO_PREFLUSH | |
545 | QUEUE_ORDERED_DO_POSTFLUSH, | 548 | QUEUE_ORDERED_DO_POSTFLUSH, |