aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/dec_and_lock.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@cse.unsw.edu.au>2005-09-09 16:23:50 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 16:39:11 -0700
commit3178b0dbdf67322f6506582e494bdf553cc85c32 (patch)
treea1169a85a0b3a54f1368dcdd86f656cfe4edd89e /lib/dec_and_lock.c
parent[PATCH] md: make sure bitmap_daemon_work actually does work. (diff)
downloadwireguard-linux-3178b0dbdf67322f6506582e494bdf553cc85c32.tar.xz
wireguard-linux-3178b0dbdf67322f6506582e494bdf553cc85c32.zip
[PATCH] md: do not set mddev->bitmap until bitmap is fully initialised
When hot-adding a bitmap, bitmap_daemon_work could get called while the bitmap is being created, so don't set mddev->bitmap until the bitmap is ready. This requires freeing the bitmap inside bitmap_create if creation failed part-way through. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/dec_and_lock.c')
0 files changed, 0 insertions, 0 deletions