diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-07-10 18:44:40 -0700 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-07-12 00:22:46 -0700 |
commit | 54d12f2b4fd0f218590d1490b41a18d0e2328a9a (patch) | |
tree | 2a7eb0a2749191087c120ae1eda0e73cabf4af34 /drivers/md/bcache/super.c | |
parent | d2a65ce2ac224413b291307201c5dafb03aa90d7 (diff) | |
download | linux-54d12f2b4fd0f218590d1490b41a18d0e2328a9a.tar.gz linux-54d12f2b4fd0f218590d1490b41a18d0e2328a9a.tar.bz2 linux-54d12f2b4fd0f218590d1490b41a18d0e2328a9a.zip |
bcache: Advertise that flushes are supported
Whoops - bcache's flush/FUA was mostly correct, but flushes get filtered
out unless we say we support them...
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
Diffstat (limited to 'drivers/md/bcache/super.c')
-rw-r--r-- | drivers/md/bcache/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index cff2d182dfb0..728fdc673f31 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -806,6 +806,8 @@ static int bcache_device_init(struct bcache_device *d, unsigned block_size, set_bit(QUEUE_FLAG_NONROT, &d->disk->queue->queue_flags); set_bit(QUEUE_FLAG_DISCARD, &d->disk->queue->queue_flags); + blk_queue_flush(q, REQ_FLUSH|REQ_FUA); + return 0; } |