commit | c4d951ddb66fe1d087447b0ba65c4fa4446f1083 | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kmo@daterainc.com> | Wed Aug 21 17:49:09 2013 -0700 |
committer | Kent Overstreet <kmo@daterainc.com> | Sun Nov 10 21:56:41 2013 -0800 |
tree | 80564725ffa4cfa0d1a02b0a80f419edcd424548 | |
parent | 48a915a87f0bd98c3d68d029acf223a2e5116f07 [diff] [blame] |
bcache: Fix sysfs splat on shutdown with flash only devs Whoops. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c index 4b67244..194d437 100644 --- a/drivers/md/bcache/sysfs.c +++ b/drivers/md/bcache/sysfs.c
@@ -370,7 +370,7 @@ } if (attr == &sysfs_unregister) { - atomic_set(&d->detaching, 1); + set_bit(BCACHE_DEV_DETACHING, &d->flags); bcache_device_stop(d); }