[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK=zhgq_wWbaSN43+aDo0p7Soibssf5G3PVQecApHyiUTwN10A@mail.gmail.com>
Date: Fri, 20 Jan 2017 21:49:48 +0530
From: Sreekanth Reddy <sreekanth.reddy@...adcom.com>
To: Johannes Thumshirn <jthumshirn@...e.de>
Cc: Chaitra P B <chaitra.basappa@...adcom.com>,
"James E.J. Bottomley" <JBottomley@...allels.com>,
"jejb@...nel.org" <jejb@...nel.org>,
Christoph Hellwig <hch@...radead.org>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
Sathya Prakash <Sathya.Prakash@...adcom.com>,
Kashyap Desai <kashyap.desai@...adcom.com>,
Krishnaraddi Mankani <krishnaraddi.mankani@...adcom.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Suganath Prabu Subramani
<suganath-prabu.subramani@...adcom.com>
Subject: Re: [PATCH v2 2/4] mpt3sas: Fix for Crusader to achieve product
targets with SAS devices.
On Fri, Jan 20, 2017 at 8:30 PM, Johannes Thumshirn <jthumshirn@...e.de> wrote:
> On Fri, Jan 20, 2017 at 08:12:11PM +0530, Chaitra P B wrote:
>> Small glitch/degraded performance in Crusader is improved with SAS
>> drives by removing unnecessary spinlocks while clearing scsi command
>> in drivers internal lookup table.
>>
>> Signed-off-by: Chaitra P B <chaitra.basappa@...adcom.com>
>> Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@...adcom.com>
>> ---
>
> Whats wrong with creating a __scsih_scsi_lookup_get_clear() and calling
> it with the scsi_lookup_lock held from _scsih_scsi_lookup_get_clear()
> instead of duplicating the code?
>
> It's quite common in the linux kernel to have two functions func and __func,
> where func is
>
> func()
> {
> spin_lock();
> __func();
> spin_unlock();
> }
>
Sure, We will resend this path with this change.
Thanks,
Sreekanth
> --
> Johannes Thumshirn Storage
> jthumshirn@...e.de +49 911 74053 689
> SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
> GF: Felix Imendörffer, Jane Smithard, Graham Norton
> HRB 21284 (AG Nürnberg)
> Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
Powered by blists - more mailing lists