]> git.baikalelectronics.ru Git - kernel.git/commit
MD: hold mddev lock to change bitmap location
authorShaohua Li <shli@fb.com>
Sat, 30 Jul 2016 17:05:31 +0000 (10:05 -0700)
committerShaohua Li <shli@fb.com>
Sat, 6 Aug 2016 05:02:40 +0000 (22:02 -0700)
commit866c77d48ba726fbf4d45c0e72dc74a57337ae84
tree6aa93f54bf5329ad88c0406041b3185511c29680
parentd0e30c995cea3c3627af6f3b6c2a113ccca15b65
MD: hold mddev lock to change bitmap location

Changing the location changes a lot of things. Holding the lock to avoid race.
This makes the .quiesce called with mddev lock hold too.

Acked-by: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/bitmap.c