commit | 4af1a04176bdb4688aa14f6c10d1d5131c036a9d | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Mon Dec 15 12:57:00 2014 +1100 |
committer | NeilBrown <neilb@suse.de> | Fri Feb 06 09:32:56 2015 +1100 |
tree | 978bdc35cce2405bacc44ad9e747e2c97143ce6f | |
parent | 1e594bb24d3d08fe4a8afa0fc45a61d6109130fa [diff] |
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: NeilBrown <neilb@suse.de>