]> git.baikalelectronics.ru Git - kernel.git/commit
md: move GET_BITMAP_FILE ioctl out from mddev_lock.
authorNeilBrown <neilb@suse.de>
Mon, 15 Dec 2014 01:57:00 +0000 (12:57 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 5 Feb 2015 22:32:56 +0000 (09:32 +1100)
commita7d44ac11e83e7b9f64831f7fdc67c9e64cf8991
tree978bdc35cce2405bacc44ad9e747e2c97143ce6f
parent35ae1257d6170737a08540c6bb911c76b7e984dd
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>
drivers/md/md.c
drivers/md/md.h