From: Hannes Reinecke <hare@suse.de>
To: Mike Snitzer <snitzer@redhat.com>
Cc: dm-devel@redhat.com, babu.moger@netapp.com, agk@redhat.com
Subject: Re: [PATCH v2 1/5] dm mpath: only try to load the scsi_dh module if the scsi_dh doesn't exist
Date: Wed, 09 May 2012 08:57:14 +0200 [thread overview]
Message-ID: <4FAA154A.6020703@suse.de> (raw)
In-Reply-To: <1336514167-15393-2-git-send-email-snitzer@redhat.com>
On 05/08/2012 11:56 PM, Mike Snitzer wrote:
> There have been reports of multipath table loads hanging due to
> __request_module hanging (for some unknown reason).
>
> More often than not, the scsi_dh is already available and there is no
> need to request_module().
>
> Reported-by: Ben Marzinski <bmarzins@redhat.com>
> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
> ---
> drivers/md/dm-mpath.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
> index 922a338..754f38f 100644
> --- a/drivers/md/dm-mpath.c
> +++ b/drivers/md/dm-mpath.c
> @@ -718,8 +718,8 @@ static int parse_hw_handler(struct dm_arg_set *as, struct multipath *m)
> return 0;
>
> m->hw_handler_name = kstrdup(dm_shift_arg(as), GFP_KERNEL);
> - request_module("scsi_dh_%s", m->hw_handler_name);
> - if (scsi_dh_handler_exist(m->hw_handler_name) == 0) {
> + if (!try_then_request_module(scsi_dh_handler_exist(m->hw_handler_name),
> + "scsi_dh_%s", m->hw_handler_name)) {
> ti->error = "unknown hardware handler type";
> ret = -EINVAL;
> goto fail;
Acked-by: Hannes Reinecke <hare@suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
next prev parent reply other threads:[~2012-05-09 6:57 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-08 21:56 [PATCH v2 0/5] dm mpath: add 'default_hw_handler' and 'no_partitions' features Mike Snitzer
2012-05-08 21:56 ` [PATCH v2 1/5] dm mpath: only try to load the scsi_dh module if the scsi_dh doesn't exist Mike Snitzer
2012-05-09 6:57 ` Hannes Reinecke [this message]
2012-05-09 22:54 ` Chandra Seetharaman
2012-05-08 21:56 ` [PATCH v2 2/5] scsi_dh: add scsi_dh_attached_handler_name Mike Snitzer
2012-05-09 6:57 ` Hannes Reinecke
2012-05-09 17:40 ` Moger, Babu
2012-05-09 20:41 ` [PATCH v3 " Mike Snitzer
2012-05-09 20:41 ` Mike Snitzer
2012-05-09 22:54 ` Chandra Seetharaman
2012-05-09 22:54 ` Chandra Seetharaman
2012-05-08 21:56 ` [PATCH v2 3/5] dm mpath: reduce size of multipath structure Mike Snitzer
2012-05-09 6:58 ` Hannes Reinecke
2012-05-08 21:56 ` [PATCH v2 4/5] dm mpath: add 'default_hw_handler' feature Mike Snitzer
2012-05-09 18:10 ` Moger, Babu
2012-05-09 19:17 ` Mike Snitzer
2012-05-09 20:35 ` Moger, Babu
2012-05-09 23:02 ` Chandra Seetharaman
2012-05-10 21:31 ` [PATCH v3 " Mike Snitzer
2012-05-17 21:15 ` Chandra Seetharaman
2012-05-08 21:56 ` [PATCH v2 5/5] dm mpath: add ability to disable partition creation Mike Snitzer
2012-05-09 23:04 ` Chandra Seetharaman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FAA154A.6020703@suse.de \
--to=hare@suse.de \
--cc=agk@redhat.com \
--cc=babu.moger@netapp.com \
--cc=dm-devel@redhat.com \
--cc=snitzer@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.