summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2017-07-04 11:20:30 +0800
committerShaohua Li <shli@fb.com>2017-07-10 10:30:41 -0700
commit4aaf7694f841edc96fe0f72958aabe59204b3611 (patch)
tree585730b5ab2b04fb7a96994caa37b08eaa143da7 /drivers/md/md.h
parentaf3c8d98508d37541d4bf57f13a984a7f73a328c (diff)
downloadlinux-4aaf7694f841edc96fe0f72958aabe59204b3611.tar.gz
linux-4aaf7694f841edc96fe0f72958aabe59204b3611.tar.bz2
linux-4aaf7694f841edc96fe0f72958aabe59204b3611.zip
md/bitmap: don't read page from device with Bitmap_sync
The device owns Bitmap_sync flag needs recovery to become in sync, and read page from this type device could get stale status. Also add comments for Bitmap_sync bit per the suggestion from Shaohua and Neil. Previous disscussion can be found here: https://marc.info/?t=149760428900004&r=1&w=2 Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index 991f0fe2dcc6..b50eb4ac1b82 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -134,7 +134,9 @@ enum flag_bits {
Faulty, /* device is known to have a fault */
In_sync, /* device is in_sync with rest of array */
Bitmap_sync, /* ..actually, not quite In_sync. Need a
- * bitmap-based recovery to get fully in sync
+ * bitmap-based recovery to get fully in sync.
+ * The bit is only meaningful before device
+ * has been passed to pers->hot_add_disk.
*/
WriteMostly, /* Avoid reading if at all possible */
AutoDetected, /* added by auto-detect */