Skip to content
Commit 4af1a041 authored by NeilBrown's avatar NeilBrown
Browse files

md: move GET_BITMAP_FILE ioctl out from mddev_lock.



It makes more sense to report bitmap_info->file, rather than
bitmap->file (the later is only available once the array is
active).

With that change, use mddev->lock to protect bitmap_info being
set to NULL, and we can call get_bitmap_file() without taking
the mutex.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 1e594bb2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment