From: NeilBrown Date: Mon, 15 Dec 2014 01:57:00 +0000 (+1100) Subject: md: move GET_BITMAP_FILE ioctl out from mddev_lock. X-Git-Tag: fixes-v4.0-rc1~120^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4af1a04176bdb4688aa14f6c10d1d5131c036a9d;p=pandora-kernel.git 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 --- Reading git-diff-tree failed