All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: James.Smart@Emulex.Com
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH] scsi_lib_dma.c : fix bug w/ dma maps on virtual fc ports
Date: Mon, 13 Oct 2008 13:39:08 -0500	[thread overview]
Message-ID: <48F395CC.6060602@cs.wisc.edu> (raw)
In-Reply-To: <48F39563.4080003@cs.wisc.edu>

Mike Christie wrote:
> James Smart wrote:
>>  
>> +/*
>> + * walks object list backward, to find the top-most shost object.
>> + * Skips over transport objects that may be vports, shosts under
>> vports, etc + */
>> +static inline struct Scsi_Host *dev_to_phys_shost(struct device *dev)
>> +{
>> +    struct Scsi_Host *shost_new = dev_to_shost(dev);
>> +    struct Scsi_Host *shost = shost_new;
>> +
>> +    while (shost_new) {
>> +        shost_new = dev_to_shost(shost->shost_gendev.parent);
>> +        if (shost_new)
>> +            shost = shost_new;
>> +    }
>> +    return shost;
>> +}
>> +
> 
> I think you will want to call this in __scsi_alloc_queue too.

Ignore. This I see it fixed in the updated patch.

      reply	other threads:[~2008-10-13 18:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-07 13:35 [PATCH] scsi_lib_dma.c : fix bug w/ dma maps on virtual fc ports James Smart
2008-10-07 13:53 ` James Bottomley
2008-10-07 15:48   ` FUJITA Tomonori
2008-10-13 18:37 ` Mike Christie
2008-10-13 18:39   ` Mike Christie [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=48F395CC.6060602@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=James.Smart@Emulex.Com \
    --cc=linux-scsi@vger.kernel.org \
    /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.