From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: Andi Kleen <ak@linux.intel.com>
Cc: Boaz Harrosh <bharrosh@panasas.com>,
James Bottomley <James.Bottomley@suse.de>,
Mike Anderson <andmike@linux.vnet.ibm.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-scsi <linux-scsi@vger.kernel.org>,
Vasu Dev <vasu.dev@linux.intel.com>,
Tim Chen <tim.c.chen@linux.intel.com>,
Matthew Wilcox <willy@linux.intel.com>,
Mike Christie <michaelc@cs.wisc.edu>,
Jens Axboe <jaxboe@fusionio.com>,
James Smart <james.smart@emulex.com>,
Andrew Vasquez <andrew.vasquez@qlogic.com>,
FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
Hannes Reinecke <hare@suse.de>, Joe Eykholt <jeykholt@cisco.com>,
Christoph Hellwig <hch@lst.de>, Jon Hawley <warthog9@kernel.org>,
Brian King <brking@linux.vnet.ibm.com>,
Christof Schmitt <christof.schmitt@de.ibm.com>,
Tejun Heo <tj@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
"H. Peter Anvin" <hpa@zytor.com>,
julia@diku.dk, Jeff Garzik <jeff@garzik.org>
Subject: Re: [ANNOUNCE] Status of unlocked_qcmds=1 operation for .37
Date: Fri, 29 Oct 2010 16:50:47 -0700 [thread overview]
Message-ID: <1288396247.19406.26.camel@haakon2.linux-iscsi.org> (raw)
In-Reply-To: <20101029075019.GC8287@gargoyle.fritz.box>
On Fri, 2010-10-29 at 09:50 +0200, Andi Kleen wrote:
> > I would have to agree that approach does make a bit more sense.. Now
> > can some brave soul (/me looks at ak) code another script to automate
> > this for the identified legacy LLDs cases that need push down..?
>
> For the drivers I looked at it doesn't really make too much difference,
> I don't think there was any with a really large number of returns.
> You can see that in the diffstat for the full changes.
>
Yep, this is a valid point. During the push down this week, I only ran
into a handful (say ~15) overly-complex SHT->queuecommand() w more than
a few return statements. This was also isoloated for the most part into
legacy/ancient LLDs.
> Writing another script is probably not too hard, but the problem
> is that I needed a significant amount of manual post processing
> (both the select the right files to patch and to get rid
> of misplaced newlines and some mismatches in cocci)
> So it's not a fully automated procedure.
>
<nod>
So I really do not have a strong preference here. I think Boaz's
approach is a bit cleaner, but in the end I think it should not hold up
on a global push-down merge for lio-4.0.git/host_lock-less-for-37-v9.
Also, at this point I have not received any other feedback from LLD
maintainers to say "My LLD should be running in lock-less mode" or "My
LLD cannot run in lock-less mode, and needs the host_lock push down".
One additional point that was raised by jgarzik was that those LLDs
running in 'lock-less' mode may need to have their internal
->queuecommand() spinlocks converted to spin_lock_irqsave() +
spin_unlock_irqrestore(). This has already been fixed for libata
following Jeff's recommendation, but we also identified a few other
potential LLDs that may need more work. From the last response locatd
here:
http://marc.info/?l=linux-scsi&m=128825558912565&w=2
"Ok, so originally libiscsi, fnic, and lpfc where using
spin_unlock(host->host_lock) -> spin_lock(host->host_lock)
And libsas, qla2xxx, qla4xxx where using
spin_unlock_irq(host->host_lock) -> spin_lock_irq(host->host_lock)
Just to verify, you are thinking that those *not* using spin_unlock_irq
+ spin_lock_irq() for the legacy optimization dispatch should have their
per LLD host lock converted to spin_lock_irqsave() +
spin_unlock_irqrestore(), right..?"
So I think that means an audit of locks obtained in libiscsi, fnic and lpfc
will be in to ensure they do not assume irqs have alreadby been externally
disabled for lock-less operation..
Any comments folks..?
--nab
next prev parent reply other threads:[~2010-10-30 0:05 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-20 20:49 Nicholas A. Bellinger
2010-10-21 19:26 ` Luben Tuikov
[not found] ` <20101021150840.GA24309@linux.vnet.ibm.com>
2010-10-26 22:08 ` Nicholas A. Bellinger
2010-10-26 22:27 ` James Bottomley
2010-10-26 22:34 ` Nicholas A. Bellinger
2010-10-26 22:50 ` James Bottomley
2010-10-26 23:00 ` Nicholas A. Bellinger
2010-10-26 23:11 ` James Bottomley
2010-10-26 23:31 ` Nicholas A. Bellinger
2010-10-27 7:53 ` Andi Kleen
2010-10-27 14:27 ` James Bottomley
2010-10-27 18:06 ` Nicholas A. Bellinger
2010-10-27 18:16 ` James Bottomley
2010-10-27 19:20 ` Mike Anderson
2010-10-27 19:55 ` Nicholas A. Bellinger
2010-10-27 23:28 ` Jeff Garzik
2010-10-28 9:10 ` Andi Kleen
2010-10-28 11:18 ` Boaz Harrosh
2010-10-28 18:26 ` Andi Kleen
2010-10-31 12:14 ` Boaz Harrosh
2010-11-01 11:45 ` Andi Kleen
2010-10-28 20:27 ` Nicholas A. Bellinger
2010-10-29 7:50 ` Andi Kleen
2010-10-29 23:50 ` Nicholas A. Bellinger [this message]
2010-10-29 23:57 ` Nicholas A. Bellinger
2010-10-27 18:03 ` Nicholas A. Bellinger
[not found] <C8E4BD3D.A1E3%giridhar.malavali@qlogic.com>
2010-10-20 23:19 ` Nicholas A. Bellinger
2010-10-21 0:30 ` Giridhar Malavali
2010-10-21 0:39 ` Nicholas A. Bellinger
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=1288396247.19406.26.camel@haakon2.linux-iscsi.org \
--to=nab@linux-iscsi.org \
--cc=James.Bottomley@suse.de \
--cc=ak@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=andmike@linux.vnet.ibm.com \
--cc=andrew.vasquez@qlogic.com \
--cc=bharrosh@panasas.com \
--cc=brking@linux.vnet.ibm.com \
--cc=christof.schmitt@de.ibm.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=hpa@zytor.com \
--cc=james.smart@emulex.com \
--cc=jaxboe@fusionio.com \
--cc=jeff@garzik.org \
--cc=jeykholt@cisco.com \
--cc=julia@diku.dk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=tim.c.chen@linux.intel.com \
--cc=tj@kernel.org \
--cc=vasu.dev@linux.intel.com \
--cc=warthog9@kernel.org \
--cc=willy@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome