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)
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>

No differences found