commit | 85c9ccd4f026aad8e91ec1c182206e807cff932d | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.com> | Fri Nov 04 16:46:03 2016 +1100 |
committer | Shaohua Li <shli@fb.com> | Mon Nov 07 15:08:23 2016 -0800 |
tree | 4e8e6bf92d4fae8c3e171f1dfba3fe9f0aeedad1 | |
parent | a9ae93c8cc0b63d8283f335604362f903d2244e2 [diff] |
md/bitmap: Don't write bitmap while earlier writes might be in-flight As we don't wait for writes to complete in bitmap_daemon_work, they could still be in-flight when bitmap_unplug writes again. Or when bitmap_daemon_work tries to write again. This can be confusing and could risk the wrong data being written last. So make sure we wait for old writes to complete before new writes start. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>