diff options
author | shaohua.li@intel.com <shaohua.li@intel.com> | 2011-05-06 13:34:32 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-05-06 13:36:25 -0400 |
commit | f3876930952390a31c3a7fd68dd621464a36eb80 (patch) | |
tree | 7fe2306a8dc2022ac7724b2d47629e38e3fb354b /block | |
parent | 490b94be0282c3b67f56453628ff0aaae827a670 (diff) |
block: add a non-queueable flush flag
flush request isn't queueable in some drives. Add a flag to let driver
notify block layer about this. We can optimize flush performance with the
knowledge.
Stable: 2.6.39 only
Cc: stable@kernel.org
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-settings.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index 1fa769293597..cd3c428e194f 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c | |||
@@ -790,6 +790,12 @@ void blk_queue_flush(struct request_queue *q, unsigned int flush) | |||
790 | } | 790 | } |
791 | EXPORT_SYMBOL_GPL(blk_queue_flush); | 791 | EXPORT_SYMBOL_GPL(blk_queue_flush); |
792 | 792 | ||
793 | void blk_queue_flush_queueable(struct request_queue *q, bool queueable) | ||
794 | { | ||
795 | q->flush_not_queueable = !queueable; | ||
796 | } | ||
797 | EXPORT_SYMBOL_GPL(blk_queue_flush_queueable); | ||
798 | |||
793 | static int __init blk_settings_init(void) | 799 | static int __init blk_settings_init(void) |
794 | { | 800 | { |
795 | blk_max_low_pfn = max_low_pfn - 1; | 801 | blk_max_low_pfn = max_low_pfn - 1; |