diff options
author | NeilBrown <neilb@suse.de> | 2010-08-30 09:33:34 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-08-30 10:06:21 +0200 |
commit | 070dc6dd7103b6b3f7e4d46e754354a5c15f366e (patch) | |
tree | 173e72d08b2070d496c203a6d5156b9a2ad2808c /drivers/md/md.h | |
parent | md: don't clear MD_CHANGE_CLEAN in md_update_sb() for external arrays (diff) | |
download | linux-070dc6dd7103b6b3f7e4d46e754354a5c15f366e.tar.xz linux-070dc6dd7103b6b3f7e4d46e754354a5c15f366e.zip |
md: resolve confusion of MD_CHANGE_CLEAN
MD_CHANGE_CLEAN is used for two different purposes and this leads to
confusion.
One of the purposes is largely mirrored by MD_CHANGE_PENDING which is
not used for anything else, so have MD_CHANGE_PENDING take over that
purpose fully.
The two purposes are:
1/ tell md_update_sb that an update is needed and that it is just a
clean/dirty transition.
2/ tell user-space that an transition from clean to dirty is pending
(something wants to write), and tell te kernel (by clearin the
flag) that the transition is OK.
The first purpose remains wit MD_CHANGE_CLEAN, the second is moved
fully to MD_CHANGE_PENDING.
This means that various places which conditionally set or cleared
MD_CHANGE_CLEAN no longer need to be conditional.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index a953fe2808ae..3931299788dc 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -140,7 +140,7 @@ struct mddev_s unsigned long flags; #define MD_CHANGE_DEVS 0 /* Some device status has changed */ #define MD_CHANGE_CLEAN 1 /* transition to or from 'clean' */ -#define MD_CHANGE_PENDING 2 /* superblock update in progress */ +#define MD_CHANGE_PENDING 2 /* switch from 'clean' to 'active' in progress */ int suspended; atomic_t active_io; |