From: Michael Reed <mdr@sgi.com>
To: "Moore, Eric" <Eric.Moore@lsil.com>
Cc: James Bottomley <James.Bottomley@SteelEye.com>,
linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: [REPOST][PATCH 1/6] mpt fusion - fibre channel target discovery prematurely terminates
Date: Thu, 15 Jun 2006 09:51:19 -0500 [thread overview]
Message-ID: <449173E7.5000108@sgi.com> (raw)
In-Reply-To: <664A4EBB07F29743873A87CF62C26D70199735@NAMAIL4.ad.lsil.com>
Moore, Eric wrote:
> On Wednesday, June 14, 2006 1:00 PM, Mike Reed wrote:
>> James Bottomley wrote:
>>> I was still thinking of something that made mpt_config()
>> never return
>>> -EAGAIN. How does the following work out? It's my first pass at
>>> sorting out the frame and active logic in mptbase:
>
...snip...
>
>> Another comment, for every i/o, this patch introduces overhead.
>> spinlock and checking a list which is empty 99.99[...]% of the time.
>> I'll have to perform an iop measurement to see if there is a
>> measurable impact on system performance.
>>
>
> What overhead? We don't read config pages on every I/O. James
> patch only effects the reading of config pages when there is
> a host reset.
I think you're mistaken about James' patch.
Doesn't every i/o use a message frame? James' patch to sleep on frame
exhaustion requires a wakeup every time a msg frame is released,
which is performed at the end of mpt_put_msg_frame(). Am I missing
something?
>
> One concern on this patch. A possible deadlock situation could
> occur if we run out of message frames. Meaning there is another way
> that mpt_get_msg_frame() could return NULL, and that is becuase
> the ioc->FreeQ list is empty. This patch only addresses the case
> when there is a host reset. Utimatley we need to address both
> cases when NULL is returned. Id rather try to come up with a
> solution where the fix is isolated inside of mpt_get_msg_frame().
James' code handles both frame exhaustion and ioc->active == 0.
But, the only caller to mpt_get_msg_frame() that now sleeps is
mpt_config().
Mike
>
> Eric Moore
>
next prev parent reply other threads:[~2006-06-15 14:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-14 22:27 [REPOST][PATCH 1/6] mpt fusion - fibre channel target discovery prematurely terminates Moore, Eric
2006-06-15 14:51 ` Michael Reed [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-06-15 15:22 Moore, Eric
2006-06-15 15:41 ` Michael Reed
2006-06-15 17:49 ` Michael Reed
2006-05-24 20:06 Michael Reed
2006-05-29 17:38 ` James Bottomley
2006-06-14 18:59 ` Michael Reed
2006-06-15 15:39 ` Michael Reed
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=449173E7.5000108@sgi.com \
--to=mdr@sgi.com \
--cc=Eric.Moore@lsil.com \
--cc=James.Bottomley@SteelEye.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.