dm mpath: check if scsi_dh module already loaded before trying to load
commitec3b77122943883a098d80845dde974b02577612
authorMike Snitzer <snitzer@redhat.com>
Sat, 12 May 2012 00:43:21 +0000 (12 01:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 May 2012 17:46:21 +0000 (21 10:46 -0700)
treec75f9d927167629e157fe7c6e9ac1342bfb1e5cd
parent17b85e4808e2593a234a34e629a5ae08e5246958
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-mpath.c