diff options
author | shaohua.li@intel.com <shaohua.li@intel.com> | 2011-05-06 11:34:32 -0600 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-05-06 11:36:25 -0600 |
commit | f3876930952390a31c3a7fd68dd621464a36eb80 (patch) | |
tree | 7fe2306a8dc2022ac7724b2d47629e38e3fb354b /block | |
parent | 490b94be0282c3b67f56453628ff0aaae827a670 (diff) | |
download | op-kernel-dev-f3876930952390a31c3a7fd68dd621464a36eb80.zip op-kernel-dev-f3876930952390a31c3a7fd68dd621464a36eb80.tar.gz |
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 1fa7692..cd3c428 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) } EXPORT_SYMBOL_GPL(blk_queue_flush); +void blk_queue_flush_queueable(struct request_queue *q, bool queueable) +{ + q->flush_not_queueable = !queueable; +} +EXPORT_SYMBOL_GPL(blk_queue_flush_queueable); + static int __init blk_settings_init(void) { blk_max_low_pfn = max_low_pfn - 1; |