From: Alex Shi <alex.shi@intel.com>
To: "Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Cc: "JBottomley@parallels.com" <JBottomley@parallels.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] scsi/mpt2sas: remove unnecesscary preempt requirement for MSIX
Date: Tue, 01 May 2012 11:36:27 +0800 [thread overview]
Message-ID: <4F9F5A3B.3090905@intel.com> (raw)
In-Reply-To: <A6888A6805518E4EA4AF7072A28264A6067E92EA43@inbmail02.lsi.com>
On 04/30/2012 01:29 PM, Nandigama, Nagalakshmi wrote:
> Alex,
> I submitted this patch already.
Ok. that's fine.
>
> James, request you to pick up the patch that I previously submitted for fixing this issue. Attaching the patch that I submitted previously.
>
>
> Regards,
> Nagalakshmi
>
>
> -----Original Message-----
> From: Alex Shi [mailto:alex.shi@intel.com]
> Sent: Saturday, April 28, 2012 11:58 AM
> To: JBottomley@parallels.com; Nandigama, Nagalakshmi
> Cc: linux-scsi@vger.kernel.org; linux-kernel@vger.kernel.org; alex.shi@intel.com
> Subject: [PATCH] scsi/mpt2sas: remove unnecesscary preempt requirement for MSIX
>
> smp_processor_id() need used in preempt safe ENV. Otherwise, the
> cpu may be preempted and run on other cpus. But here, we don't care much
> the specific CPU which handler the MSI, so just replace it by
> raw_smp_processor_id() to avoid preempt debug warning.
>
> Signed-off-by: Alex Shi <alex.shi@intel.com>
> ---
> drivers/scsi/mpt2sas/mpt2sas_base.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.c b/drivers/scsi/mpt2sas/mpt2sas_base.c
> index 8a59a77..3f518ba 100644
> --- a/drivers/scsi/mpt2sas/mpt2sas_base.c
> +++ b/drivers/scsi/mpt2sas/mpt2sas_base.c
> @@ -1785,7 +1785,7 @@ static inline void _base_writeq(__u64 b, volatile void __iomem *addr,
> static inline u8
> _base_get_msix_index(struct MPT2SAS_ADAPTER *ioc)
> {
> - return ioc->cpu_msix_table[smp_processor_id()];
> + return ioc->cpu_msix_table[raw_smp_processor_id()];
> }
>
> /**
prev parent reply other threads:[~2012-05-01 3:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-28 6:27 [PATCH] scsi/mpt2sas: remove unnecesscary preempt requirement for MSIX Alex Shi
2012-04-30 5:29 ` Nandigama, Nagalakshmi
2012-05-01 3:36 ` Alex Shi [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=4F9F5A3B.3090905@intel.com \
--to=alex.shi@intel.com \
--cc=JBottomley@parallels.com \
--cc=Nagalakshmi.Nandigama@lsi.com \
--cc=linux-kernel@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).