Re: [PATCH rdma-next] i40iw: Reorganize acquire/release of locks in i40iw_manage_apbvt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 01, 2018 at 12:18:36PM -0500, Shiraz Saleem wrote:
> Commit f43c00c04bbf "i40iw: Extend port reuse support for listeners"
> introduces a sparse warning:
> 
> include/linux/spinlock.h:365:9: sparse: context imbalance in
> 'i40iw_manage_apbvt' - unexpected unlock
> 
> Fix this by reorganizing the acquire/release of locks in
> i40iw_manage_apbvt and add a new function i40iw_cqp_manage_abvpt_cmd
> to perform the CQP command. Also, use __clear_bit and __test_and_set_bit
> as we do not need atomic versions.
> 
> Fixes: f43c00c04bbf ("i40iw: Extend port reuse support for listeners")
> Suggested-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
> Signed-off-by: Shiraz Saleem <shiraz.saleem@xxxxxxxxx>
> ---
>  drivers/infiniband/hw/i40iw/i40iw_hw.c | 83 +++++++++++++++++++++-------------
>  1 file changed, 51 insertions(+), 32 deletions(-)

Applied to for-next, thanks

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux