[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <65ac3de8-9fdd-b5c5-b7aa-aa4393626551@oracle.com>
Date: Thu, 9 Mar 2017 08:50:14 -0800
From: Santosh Shilimkar <santosh.shilimkar@...cle.com>
To: Zhu Yanjun <yanjun.zhu@...cle.com>, netdev@...r.kernel.org,
linux-rdma@...r.kernel.org, rds-devel@....oracle.com
Subject: Re: [PATCH 2/5] rds: ib: replace spin_lock_irq with spin_lock_irqsave
On 3/8/2017 11:26 PM, Zhu Yanjun wrote:
> It is difficult to make sure the state of the interrupt when this
> function is called. As such, it is safer to use spin_lock_irqsave
> than spin_lock_irq.
>
There is no reason to hold irqs and as such the code path is
safe from irq context. I don't see need of this change unless
you have test case which showed some issue.
Regards,
Santosh
Powered by blists - more mailing lists