On Tue, Jul 23, 2019 at 09:57:33AM +0300, Leon Romanovsky wrote: > From: Parav Pandit <parav@xxxxxxxxxxxx> > > Annotate mutex_destroy for port counters during counters release > operation and during error unwinding during init flow. > > Also port counter object should be initialized even if alloc_stats is > unsupported, so that other QP bind operations can avoid call trace > if they try to bind QP on RDMA device which doesn't support counters. > > Fixes: f34a55e497e81 ("RDMA/core: Get sum value of all counters when perform a sysfs stat read") > Signed-off-by: Parav Pandit <parav@xxxxxxxxxxxx> > Reviewed-by: Mark Zhang <markz@xxxxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/core/counters.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) Don't put two things in a for-rc patch, I split it. Jason