Re: [PATCH V6 mlx5-next 13/16] net/mlx5: Change lag mutex lock to spin lock

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

 



On Sun, Apr 26, 2020 at 10:17:14AM +0300, Maor Gottlieb wrote:
> The lag lock could be a mutex, the critical section is short
> and there is no need that the thread will sleep.
> Change the lock that protects the LAG structure from mutex
> to spin lock. It is required for next patch that need to
> access this structure from context that we can't sleep.
> In addition there is no need to hold this lock when query the
> congestion counters.
> 
> Signed-off-by: Maor Gottlieb <maorg@xxxxxxxxxxxx>
> Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  drivers/net/ethernet/mellanox/mlx5/core/lag.c | 42 +++++++++----------
>  1 file changed, 21 insertions(+), 21 deletions(-)

Lets have these two net/ patches before the RDMA patches, it seems there is
not a reason here to send RDMA patches to net

Thanks,
Jason



[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