md/bitmap: protect clearing of ->bitmap by mddev->lock
authorNeilBrown <neilb@suse.de>
Mon, 15 Dec 2014 01:56:58 +0000 (12:56 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 5 Feb 2015 22:32:55 +0000 (09:32 +1100)
commit978a7a47cae79ae7a7b5a1e80bfcaef6ee700312
treef9f479f5a662ddc9cd482d0e46c7e21e3ca3783b
parent36d091f4759d194c99f0705d412afe208622b45a
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>
drivers/md/bitmap.c
drivers/md/md.h