]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08abc5f0e7d3ea59e0a39c604421d181eafdf8c5
treef9f479f5a662ddc9cd482d0e46c7e21e3ca3783b
parenta8d5765053f4d8b359f1d4c87d5ffc7c3910464b
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