diff options
author | NeilBrown <neilb@suse.de> | 2010-06-01 05:37:29 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-07-25 22:53:08 -0400 |
commit | 252ac5221a71be72b7e7c7b7482af91e9c962e8c (patch) | |
tree | cb9542b1391dabc136ce0052eb28948e77a6e2e5 /drivers/md/md.h | |
parent | 2ac8740151b082f045e58010eb92560c3a23a0e9 (diff) |
md/plug: optionally use plugger to unplug an array during resync/recovery.
If an array doesn't have a 'queue' then md_do_sync cannot
unplug it.
In that case it will have a 'plugger', so make that available
to the mddev, and use it to unplug the array if needed.
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, 2 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 5be0d6921b9d..57eb864a8249 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h | |||
@@ -328,6 +328,8 @@ struct mddev_s | |||
328 | struct list_head all_mddevs; | 328 | struct list_head all_mddevs; |
329 | 329 | ||
330 | struct attribute_group *to_remove; | 330 | struct attribute_group *to_remove; |
331 | struct plug_handle *plug; /* if used by personality */ | ||
332 | |||
331 | /* Generic barrier handling. | 333 | /* Generic barrier handling. |
332 | * If there is a pending barrier request, all other | 334 | * If there is a pending barrier request, all other |
333 | * writes are blocked while the devices are flushed. | 335 | * writes are blocked while the devices are flushed. |