Re: [PATCH rdma-next v1] RDMA/core: Initialize lock when allocate a rdma_hw_stats structure

From: Jason Gunthorpe
Date: Wed Oct 27 2021 - 12:40:24 EST


On Tue, Oct 26, 2021 at 11:43:03AM +0300, Leon Romanovsky wrote:
> From: Mark Zhang <markzhang@xxxxxxxxxx>
>
> Initialize the rdma_hw_stats "lock" field when do allocation, to fix the
> warning below. Then we don't need to initialize it in sysfs, remove it.

> drivers/infiniband/core/sysfs.c | 2 --
> drivers/infiniband/core/verbs.c | 1 +
> 2 files changed, 1 insertion(+), 2 deletions(-)

Applied to for-next

Jason