diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-08-21 20:49:09 -0400 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-11 00:56:41 -0500 |
commit | c4d951ddb66fe1d087447b0ba65c4fa4446f1083 (patch) | |
tree | 80564725ffa4cfa0d1a02b0a80f419edcd424548 /drivers/md/bcache/request.c | |
parent | 48a915a87f0bd98c3d68d029acf223a2e5116f07 (diff) |
bcache: Fix sysfs splat on shutdown with flash only devs
Whoops.
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/request.c')
-rw-r--r-- | drivers/md/bcache/request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index f645da61189a..9f5a1386f77a 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c | |||
@@ -512,7 +512,7 @@ static bool check_should_bypass(struct cached_dev *dc, struct bio *bio) | |||
512 | struct task_struct *task = current; | 512 | struct task_struct *task = current; |
513 | struct io *i; | 513 | struct io *i; |
514 | 514 | ||
515 | if (atomic_read(&dc->disk.detaching) || | 515 | if (test_bit(BCACHE_DEV_DETACHING, &dc->disk.flags) || |
516 | c->gc_stats.in_use > CUTOFF_CACHE_ADD || | 516 | c->gc_stats.in_use > CUTOFF_CACHE_ADD || |
517 | (bio->bi_rw & REQ_DISCARD)) | 517 | (bio->bi_rw & REQ_DISCARD)) |
518 | goto skip; | 518 | goto skip; |