From: Karsten Graul <kgr...@linux.ibm.com>
Date: Thu, 16 Jul 2020 17:37:40 +0200

> Fix that by protecting the critical code using a mutex.
 ...
> @@ -52,6 +52,7 @@ struct smc_ib_device {                              /* 
> ib-device infos for smc */
>       DECLARE_BITMAP(ports_going_away, SMC_MAX_PORTS);
>       atomic_t                lnk_cnt;        /* number of links on ibdev */
>       wait_queue_head_t       lnks_deleted;   /* wait 4 removal of all links*/
> +     struct mutex            mutex;          /* protects smc ib device */
>  };

So which is it?  Does the mutex protect the entire contents of the
smc ib device struct, as stated in the comment?  Or does it only
synchronize object creation?

One of them is obviously wrong, so please correct that.

Reply via email to