summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_scan.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2013-05-10 11:06:16 +0200
committerJames Bottomley <JBottomley@Parallels.com>2013-06-04 20:16:23 +0200
commit0761df9c4b2d966da3af2ac4ee7372afa681ce63 (patch)
tree270b55e300537889e9eb2254f04f824abb964cbd /drivers/scsi/scsi_scan.c
parent[SCSI] ipr: Avoid target_destroy accessing memory after it was freed (diff)
downloadlinux-0761df9c4b2d966da3af2ac4ee7372afa681ce63.tar.xz
linux-0761df9c4b2d966da3af2ac4ee7372afa681ce63.zip
[SCSI] sd: avoid deadlocks when running under multipath
When multipathed systems run into an all-paths-down scenario all devices might be dropped, too. This causes 'del_gendisk' to be called, which will unregister the kobj_map->probe() function for all disk device numbers. When the device comes back the default ->probe() function is run which will call __request_module(), which will deadlock. As 'del_gendisk' typically does _not_ trigger a module unload the default ->probe() function is pointless anyway. This patch implements a dummy ->probe() function, which will just return NULL if the disk is not registered. This will avoid the deadlock. Plus it'll speed up device scanning. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
0 files changed, 0 insertions, 0 deletions