All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xinwei Kong <kong.kongxinwei@hisilicon.com>
To: Hannes Reinecke <hare@suse.de>,
	linuxraid@lsi.com, James.Bottomley@HansenPartnership.com,
	hch@lst.de, snitzer@redhat.com
Cc: martin.petersen@oracle.com, JBottomley@Odin.com,
	linux-scsi@vger.kernel.org,
	"liguozhu@hisilicon.com" <liguozhu@hisilicon.com>
Subject: Re: [PATCH 1/1] scsi: usb: fix bug which some usb isn't used
Date: Wed, 13 Apr 2016 10:16:14 +0800	[thread overview]
Message-ID: <570DABEE.3000308@hisilicon.com> (raw)
In-Reply-To: <570CEDCF.8010505@suse.de>



On 2016/4/12 20:45, Hannes Reinecke wrote:
> On 04/12/2016 02:35 PM, Xinwei Kong wrote:
>> some usb disk such as Manufacturer Lenovo will have some problem in
>> init process.
>>
>> when it run "scsi_dh_find_driver" function, because this parameter of
>> "sdev->inquiry[5]" is 115, it will return "alua" in "scsi_dh_find_driver"
>> function and will have some error log (alua: Attach failed (-22)). some
>> usb init will fail and isn't used.
>>
>> Signed-off-by: Xinwei Kong <kong.kongxinwei@hisilicon.com>
>> ---
>>  drivers/scsi/scsi_dh.c | 3 ---
>>  1 file changed, 3 deletions(-)
>>
>> diff --git a/drivers/scsi/scsi_dh.c b/drivers/scsi/scsi_dh.c
>> index 54d446c..36b3f354e 100644
>> --- a/drivers/scsi/scsi_dh.c
>> +++ b/drivers/scsi/scsi_dh.c
>> @@ -77,9 +77,6 @@ scsi_dh_find_driver(struct scsi_device *sdev)
>>  {
>>  	const struct scsi_dh_blist *b;
>>  
>> -	if (scsi_device_tpgs(sdev))
>> -		return "alua";
>> -
>>  	for (b = scsi_dh_blist; b->vendor; b++) {
>>  		if (!strncmp(sdev->vendor, b->vendor, strlen(b->vendor)) &&
>>  		    !strncmp(sdev->model, b->model, strlen(b->model))) {
>>
> Nack.
> That will completely disable ALUA support for everybody.
> 
> And should've been fixed with commit
> 221255aee67ec1c752001080aafec0c4e9390d95
> ("scsi: ignore errors from scsi_dh_add_device()").
> 
> Please validate.
> 
ok, I slove this bug for using this patch.

thank you
xinwei
> Cheers,
> 
> Hannes
> 


      reply	other threads:[~2016-04-13  2:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-12 12:35 [PATCH 1/1] scsi: usb: fix bug which some usb isn't used Xinwei Kong
2016-04-12 12:45 ` Hannes Reinecke
2016-04-13  2:16   ` Xinwei Kong [this message]

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=570DABEE.3000308@hisilicon.com \
    --to=kong.kongxinwei@hisilicon.com \
    --cc=JBottomley@Odin.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=liguozhu@hisilicon.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linuxraid@lsi.com \
    --cc=martin.petersen@oracle.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.