summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-12-15 12:56:58 +1100
committerNeilBrown <neilb@suse.de>2015-02-06 09:32:55 +1100
commit978a7a47cae79ae7a7b5a1e80bfcaef6ee700312 (patch)
treef9f479f5a662ddc9cd482d0e46c7e21e3ca3783b /drivers/md/md.h
parent36d091f4759d194c99f0705d412afe208622b45a (diff)
downloadlinux-stable-978a7a47cae79ae7a7b5a1e80bfcaef6ee700312.tar.gz
linux-stable-978a7a47cae79ae7a7b5a1e80bfcaef6ee700312.tar.bz2
linux-stable-978a7a47cae79ae7a7b5a1e80bfcaef6ee700312.zip
md/bitmap: protect clearing of ->bitmap by mddev->lock
This makes it safe to inspect the struct while holding only the spinlock. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index e41559dccdc9..8770308a8052 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -392,6 +392,7 @@ struct mddev {
* clearing MD_CHANGE_*
* in_sync - and related safemode and MD_CHANGE changes
* pers (also protected by reconfig_mutex and pending IO).
+ * clearing ->bitmap
*/
spinlock_t lock;
wait_queue_head_t sb_wait; /* for waiting on superblock updates */