md/bitmap: don't read page from device with Bitmap_sync
authorGuoqing Jiang <gqjiang@suse.com>
Tue, 4 Jul 2017 03:20:30 +0000 (11:20 +0800)
committerShaohua Li <shli@fb.com>
Mon, 10 Jul 2017 17:30:41 +0000 (10:30 -0700)
commit4aaf7694f841edc96fe0f72958aabe59204b3611
tree585730b5ab2b04fb7a96994caa37b08eaa143da7
parentaf3c8d98508d37541d4bf57f13a984a7f73a328c
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>
drivers/md/bitmap.c
drivers/md/md.h