OSDN Git Service

IB/mad: Agent registration is process context only
authorMatthew Wilcox <mawilcox@microsoft.com>
Fri, 8 Jun 2018 17:42:17 +0000 (10:42 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Jun 2018 17:09:05 +0000 (11:09 -0600)
commit0c271c433ca2f481ccf5e9a5645a2ec071188c19
treef97fd70fc9b44db1aa3bb31eaaa4e1d5ef9dedbb
parent7f3ee8e030d851fdb0eace00cc5ceb294238c1b8
IB/mad: Agent registration is process context only

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@microsoft.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/mad.c