md: only count actual openers as access which prevent a 'stop'
[firefly-linux-kernel-4.4.55.git] / include / linux / raid / md_k.h
index 6f72b47ae41c0aa29c163647f2bbc54b1ba85120..4bef4791d80df3db59053b2ba5a3aa21ca8d130e 100644 (file)
@@ -215,7 +215,8 @@ struct mddev_s
 
        int                             in_sync;        /* know to not need resync */
        struct mutex                    reconfig_mutex;
-       atomic_t                        active;
+       atomic_t                        active;         /* general refcount */
+       atomic_t                        openers;        /* number of active opens */
 
        int                             changed;        /* true if we might need to reread partition info */
        int                             degraded;       /* whether md should consider