summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/bcache.h
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-08-22 02:49:09 +0200
committerKent Overstreet <kmo@daterainc.com>2013-11-11 06:56:41 +0100
commitc4d951ddb66fe1d087447b0ba65c4fa4446f1083 (patch)
tree80564725ffa4cfa0d1a02b0a80f419edcd424548 /drivers/md/bcache/bcache.h
parentbcache: Better full stripe scanning (diff)
downloadlinux-c4d951ddb66fe1d087447b0ba65c4fa4446f1083.tar.xz
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/bcache.h')
-rw-r--r--drivers/md/bcache/bcache.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h
index ab0b2150fed6..97ef126b68bb 100644
--- a/drivers/md/bcache/bcache.h
+++ b/drivers/md/bcache/bcache.h
@@ -266,12 +266,10 @@ struct bcache_device {
struct gendisk *disk;
- /* If nonzero, we're closing */
- atomic_t closing;
-
- /* If nonzero, we're detaching/unregistering from cache set */
- atomic_t detaching;
- int flush_done;
+ unsigned long flags;
+#define BCACHE_DEV_CLOSING 0
+#define BCACHE_DEV_DETACHING 1
+#define BCACHE_DEV_UNLINK_DONE 2
unsigned nr_stripes;
unsigned stripe_size;