]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block: add ability to flag write back caching on a device
authorJens Axboe <axboe@fb.com>
Tue, 12 Apr 2016 18:32:46 +0000 (12:32 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:41:15 +0000 (13:41 -0700)
commit559907c8296d1a20470a875a65ca1771f9c36d6a
tree3ce69b4843c630703654d35e3305da313deec346
parentf4659d42c7499ef3f0816d1b76d8fb5d3fe67832
block: add ability to flag write back caching on a device

Add an internal helper and flag for setting whether a queue has
write back caching, or write through (or none). Add a sysfs file
to show this as well, and make it changeable from user space.

This will replace the (awkward) blk_queue_flush() interface that
drivers currently use to inform the block layer of write cache state
and capabilities.

Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
(cherry picked from commit 93e9d8e836cb1a9a58b33eb6643bf061c6119ef2)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Documentation/block/queue-sysfs.txt
block/blk-settings.c
block/blk-sysfs.c
include/linux/blkdev.h