public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
	Bo Yang <Bo.Yang@lsi.com>, Christoph Hellwig <hch@lst.de>,
	James Bottomley <James.Bottomley@suse.de>
Subject: Re: [PATCH 0/3] megaraid_sas: Convert to host_lock less w/	interrupts disabled internally
Date: Mon, 29 Nov 2010 16:56:18 +0100	[thread overview]
Message-ID: <4CF3CD22.2050504@suse.de> (raw)
In-Reply-To: <1290929339.6216.188.camel@haakon2.linux-iscsi.org>

On 11/28/2010 08:28 AM, Nicholas A. Bellinger wrote:
> On Sat, 2010-11-27 at 23:17 -0800, Nicholas A. Bellinger wrote:
>> From: Nicholas Bellinger <nab@linux-iscsi.org>
>>
>> Greetings Hannes, Bo and Co,
>>
>> This series converts megaraid_sas to run in modern host_lock-less mode
>> for >= .37-rc3+ with interrupts disabled internally around megasas_instance->hba_lock.
>> This series is currently living in lio-core-2.6.git/lock_less-LLDs-for-38-v2,
>> and is intended for .38 mainline code.
>>
>> The first patch adds a handful of missing barriers around instance->fw_outstanding
>> usage w/ atomic_add() and atomic_dec().
>>
>> The second converts instance->issuepend_done to an atomic_t, along with
>> the necessary assignments in order to run w/ Scsi_Host->host_lock, and
>> without instance->hba_lock.
>>
>> The third patch does the actual conversion, and adds a __megasas_get_cmd()
>> usased by megasas_queue_command() w/ instance->hba_lock, along with
>> being held for megasas_build_ldio() and megasas_build_dcdb() in order
>> to locate the proper frame for struct megasas_cmd.  This is really the
>> one major change in order to get host_lock-less to function with interrupts
>> disabled around hba_lock.
>>
>> So far this has been tested with Hannes's QEMU 8708EM2 HBA emulation with
>> TCM_Loop backends using SG_IO from KVM host in a paired Host/Guest .37-rc3
>> environment.  This has not been tested on real silicon yet, but I believe
>> this series should be working there as well.
>>
> 
> And quick screenshot running in KVM Host TCM_Loop host_lock-less mode
> into KVM Guest megaraid_sas host_lock-less mode w/ small block LTP
> disktest.
> 
> http://www.linux-iscsi.org/index.php/File:TCM_loop-megasas-37-rc3.png
> 
> Just a FYI, with scsi-generic <-> TCM_Loop everything appears to be
> stable for both small and large block size tests.
> 
Oh, good. I did some initial tests with megaraid_sas & host_lock
disabled, but ran into the problems you mentioned.
And have been too lazy to pursue this problem further.
Thanks for your work; I'll give it a spin and see if the throughput
speed has increased.

Thanks for the patches.

Btw, I've found one issue wrt Windows7 booting; now we're not
crashing anymore. But we're not exactly progressing, either;
apparently Win7 fails to notify that we've finished the commands.
Continue debugging.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2010-11-29 15:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-28  7:17 [PATCH 0/3] megaraid_sas: Convert to host_lock less w/ interrupts disabled internally Nicholas A. Bellinger
2010-11-28  7:17 ` [PATCH 1/3] megaraid_sas: Add smp_mb__after_atomic_*() for instance->fw_outstanding Nicholas A. Bellinger
2010-11-28  7:17 ` [PATCH 2/3] megaraid_sas: Convert instance->issuepend_done to atomic_t Nicholas A. Bellinger
2010-11-28  7:17 ` [PATCH 3/3] megaraid_sas: Convert SHT->queuecommand() to run host_lock-less Nicholas A. Bellinger
2010-11-29 16:41   ` Christoph Hellwig
2010-11-29 20:54     ` Nicholas A. Bellinger
2010-11-28  7:28 ` [PATCH 0/3] megaraid_sas: Convert to host_lock less w/ interrupts disabled internally Nicholas A. Bellinger
2010-11-29 15:56   ` Hannes Reinecke [this message]
2010-11-29 21:07     ` Nicholas A. Bellinger
2010-11-30  6:26 ` Yang, Bo
2010-11-30 21:21   ` Nicholas A. Bellinger
2010-11-30 22:05     ` Nicholas A. Bellinger
2010-11-30 22:30       ` Yang, Bo
2010-12-01  0:24         ` 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=4CF3CD22.2050504@suse.de \
    --to=hare@suse.de \
    --cc=Bo.Yang@lsi.com \
    --cc=James.Bottomley@suse.de \
    --cc=hch@lst.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=nab@linux-iscsi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox