aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-04-15 10:13:47 +1000
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-05 11:15:49 -0700
commit8e94bc5e7fda8d155462242d83ead72aa15fee8c (patch)
tree4805d178c597c4f4da2d4b5a1fa901ec3d88ad8e /scripts/patch-kernel
parent082aa2fd54a4482d2d59e375ce28dbef9b485bee (diff)
md: remove unneeded sysfs files more promptly
commit b6eb127d274385d81ce8dd45c98190f097bce1b4 upstream. When an array is stopped we need to remove some sysfs files which are dependent on the type of array. We need to delay that deletion as deleting them while holding reconfig_mutex can lead to deadlocks. We currently delay them until the array is completely destroyed. However it is possible to deactivate and then reactivate the array. It is also possible to need to remove sysfs files when changing level, which can potentially happen several times before an array is destroyed. So we need to delete these files more promptly: as soon as reconfig_mutex is dropped. We need to ensure this happens before do_md_run can restart the array, so we use open_mutex for some extra locking. This is not deadlock prone. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions