]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: check if the device is flush capable
authorAnand Jain <anand.jain@oracle.com>
Thu, 6 Apr 2017 03:22:53 +0000 (11:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 14:13:27 +0000 (16:13 +0200)
commitb81fb454d6edf435c68d444916ceb887e3d7b04d
treef605531dbf3f58c262ddeec51239619b044696d3
parent3bfd7d22137d1fd6ea38f79498ac2c1814f3597a
btrfs: check if the device is flush capable

The block layer call chain from submit_bio will check if the write cache
is enabled for the given queue before submitting the flush. This will
add a code to fail fast if its not.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ updated changelog to reflect current code stat, blkdev_issue_flush is
  not used yet ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c