aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-07-31 10:04:55 +1000
committerNeilBrown <neilb@suse.de>2012-07-31 10:04:55 +1000
commit90cf195d9bcb4bf70e8b6df5073b05164b279ba0 (patch)
tree815e0ad7c0b7f4af7eb04d07eb2093e60540bb55 /drivers/md/raid1.c
parentraid5: Add R5_ReadNoMerge flag which prevent bio from merging at block layer (diff)
downloadlinux-dev-90cf195d9bcb4bf70e8b6df5073b05164b279ba0.tar.xz
linux-dev-90cf195d9bcb4bf70e8b6df5073b05164b279ba0.zip
md: remove duplicated test on ->openers when calling do_md_stop()
do_md_stop tests mddev->openers while holding ->open_mutex, and fails if this count is too high. So callers do not need to check mddev->openers and doing so isn't very meaningful as they don't hold ->open_mutex so the number could change. So remove the unnecessary tests on mddev->openers. These are not called often enough for there to be any gain in an early test on ->open_mutex to avoid the need for a slightly more costly mutex_lock call. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions