diff options
author | Shaohua Li <shli@fb.com> | 2016-07-28 12:34:14 -0400 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-07-28 12:34:14 -0400 |
commit | 3f35e210ed4617a68b6baa9b7ac6c72bf7e313d9 (patch) | |
tree | 2cce851a454be4deea141593c3db62001ab65108 /drivers/md/md.h | |
parent | 194dc870a5890e855ecffb30f3b80ba7c88f96d6 (diff) | |
parent | 5d8817833c7609c24da9a92f71c53caa9c1424eb (diff) |
Merge branch 'mymd/for-next' into mymd/for-linus
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index b4f335245bd6..20c667579ede 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h | |||
@@ -99,7 +99,7 @@ struct md_rdev { | |||
99 | atomic_t read_errors; /* number of consecutive read errors that | 99 | atomic_t read_errors; /* number of consecutive read errors that |
100 | * we have tried to ignore. | 100 | * we have tried to ignore. |
101 | */ | 101 | */ |
102 | struct timespec last_read_error; /* monotonic time since our | 102 | time64_t last_read_error; /* monotonic time since our |
103 | * last read error | 103 | * last read error |
104 | */ | 104 | */ |
105 | atomic_t corrected_errors; /* number of corrected read errors, | 105 | atomic_t corrected_errors; /* number of corrected read errors, |
@@ -163,6 +163,11 @@ enum flag_bits { | |||
163 | * than other devices in the array | 163 | * than other devices in the array |
164 | */ | 164 | */ |
165 | ClusterRemove, | 165 | ClusterRemove, |
166 | RemoveSynchronized, /* synchronize_rcu() was called after | ||
167 | * this device was known to be faulty, | ||
168 | * so it is safe to remove without | ||
169 | * another synchronize_rcu() call. | ||
170 | */ | ||
166 | }; | 171 | }; |
167 | 172 | ||
168 | static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, | 173 | static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, |
@@ -204,6 +209,9 @@ struct mddev { | |||
204 | #define MD_RELOAD_SB 7 /* Reload the superblock because another node | 209 | #define MD_RELOAD_SB 7 /* Reload the superblock because another node |
205 | * updated it. | 210 | * updated it. |
206 | */ | 211 | */ |
212 | #define MD_CLUSTER_RESYNC_LOCKED 8 /* cluster raid only, which means node | ||
213 | * already took resync lock, need to | ||
214 | * release the lock */ | ||
207 | 215 | ||
208 | int suspended; | 216 | int suspended; |
209 | atomic_t active_io; | 217 | atomic_t active_io; |