diff options
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 653f992b687a..20f02c0b5f2d 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h | |||
@@ -268,6 +268,14 @@ struct mddev { | |||
268 | 268 | ||
269 | struct md_thread *thread; /* management thread */ | 269 | struct md_thread *thread; /* management thread */ |
270 | struct md_thread *sync_thread; /* doing resync or reconstruct */ | 270 | struct md_thread *sync_thread; /* doing resync or reconstruct */ |
271 | |||
272 | /* 'last_sync_action' is initialized to "none". It is set when a | ||
273 | * sync operation (i.e "data-check", "requested-resync", "resync", | ||
274 | * "recovery", or "reshape") is started. It holds this value even | ||
275 | * when the sync thread is "frozen" (interrupted) or "idle" (stopped | ||
276 | * or finished). It is overwritten when a new sync operation is begun. | ||
277 | */ | ||
278 | char *last_sync_action; | ||
271 | sector_t curr_resync; /* last block scheduled */ | 279 | sector_t curr_resync; /* last block scheduled */ |
272 | /* As resync requests can complete out of order, we cannot easily track | 280 | /* As resync requests can complete out of order, we cannot easily track |
273 | * how much resync has been completed. So we occasionally pause until | 281 | * how much resync has been completed. So we occasionally pause until |