summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-12-15 02:57:00 +0100
committerNeilBrown <neilb@suse.de>2015-02-05 23:32:56 +0100
commit4af1a04176bdb4688aa14f6c10d1d5131c036a9d (patch)
tree978bdc35cce2405bacc44ad9e747e2c97143ce6f /drivers/md/md.h
parentmd: tidy up set_bitmap_file (diff)
downloadlinux-4af1a04176bdb4688aa14f6c10d1d5131c036a9d.tar.xz
linux-4af1a04176bdb4688aa14f6c10d1d5131c036a9d.zip
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>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index 8770308a8052..b4fbd6a63fcf 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -393,6 +393,7 @@ struct mddev {
* in_sync - and related safemode and MD_CHANGE changes
* pers (also protected by reconfig_mutex and pending IO).
* clearing ->bitmap
+ * clearing ->bitmap_info.file
*/
spinlock_t lock;
wait_queue_head_t sb_wait; /* for waiting on superblock updates */