diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-08-21 17:49:09 -0700 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-10 21:56:41 -0800 |
commit | c4d951ddb66fe1d087447b0ba65c4fa4446f1083 (patch) | |
tree | 80564725ffa4cfa0d1a02b0a80f419edcd424548 /drivers/md/bcache/sysfs.c | |
parent | 48a915a87f0bd98c3d68d029acf223a2e5116f07 (diff) | |
download | linux-c4d951ddb66fe1d087447b0ba65c4fa4446f1083.tar.gz linux-c4d951ddb66fe1d087447b0ba65c4fa4446f1083.tar.bz2 linux-c4d951ddb66fe1d087447b0ba65c4fa4446f1083.zip |
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/sysfs.c')
-rw-r--r-- | drivers/md/bcache/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index 4b672449ffaf..194d43782ea4 100644 --- a/drivers/md/bcache/sysfs.c +++ b/drivers/md/bcache/sysfs.c @@ -370,7 +370,7 @@ STORE(__bch_flash_dev) } if (attr == &sysfs_unregister) { - atomic_set(&d->detaching, 1); + set_bit(BCACHE_DEV_DETACHING, &d->flags); bcache_device_stop(d); } |