Re: [PATCH 1/2] IB/mad: Agent registration is process context only

From: Jason Gunthorpe
Date: Tue Jun 12 2018 - 16:38:40 EST


On Fri, Jun 08, 2018 at 10:42:17AM -0700, Matthew Wilcox wrote:
> From: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx>
>
> Document this (it's implicitly true due to sleeping operations already
> in use in both registration and deregistration). Use this fact to use
> spin_lock_irq instead of spin_lock_irqsave. This improves performance
> slightly.
>
> Signed-off-by: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx>
> ---
> drivers/infiniband/core/mad.c | 16 +++++++++-------
> 1 file changed, 9 insertions(+), 7 deletions(-)

In the mean time, this patch is straightfoward, applied to the interm
for-next..

Jason