]> 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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 20 May 2012 21:56:42 +0000 (22:56 +0100)
commitf6fa1ed89c2778e9755c9d1081bdb7cab38fbfb4
tree7475ef7242066da4faa09a07a611d64e77bc1c59
parentab13af236947f28b3245591f4c2c20085ec9e91e
dm mpath: check if scsi_dh module already loaded before trying to load

commit 510193a2d3d2e03ae53b95c0ae4f33cdff02cbf8 upstream.

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>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/md/dm-mpath.c