]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm mpath: check if scsi_dh module already loaded before trying to load
authorMike Snitzer <snitzer@redhat.com>
Sat, 12 May 2012 00:43:21 +0000 (01:43 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Sat, 12 May 2012 00:43:21 +0000 (01:43 +0100)
commit510193a2d3d2e03ae53b95c0ae4f33cdff02cbf8
tree7d1a5c7b9c8bb19fef2d28e6ec84c5f0e400be61
parent7cab8bf1601d38fd73a0a4ea40cc4892b26907cc
dm mpath: check if scsi_dh module already loaded before trying to load

If the requested scsi_dh module is already loaded then skip
request_module().

Multipath table loads can hang in an unnecessary __request_module.

Reported-by: Ben Marzinski <bmarzins@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c