diff options
author | Ursula Braun <ubraun@linux.ibm.com> | 2020-07-08 17:05:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-08 21:35:15 +0200 |
commit | 82087c0330534d18e6db25869871e589d214b7fa (patch) | |
tree | e32c33a62c950432f348c21b0d1ce1834fdcaf66 /net/smc/smc_ism.h | |
parent | net/smc: fix sleep bug in smc_pnet_find_roce_resource() (diff) | |
download | linux-82087c0330534d18e6db25869871e589d214b7fa.tar.xz linux-82087c0330534d18e6db25869871e589d214b7fa.zip |
net/smc: switch smcd_dev_list spinlock to mutex
The similar smc_ib_devices spinlock has been converted to a mutex.
Protecting the smcd_dev_list by a mutex is possible as well. This
patch converts the smcd_dev_list spinlock to a mutex.
Fixes: c6ba7c9ba43d ("net/smc: add base infrastructure for SMC-D and ISM")
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_ism.h')
-rw-r--r-- | net/smc/smc_ism.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/smc/smc_ism.h b/net/smc/smc_ism.h index 4da946cbfa29..81cc4537efd3 100644 --- a/net/smc/smc_ism.h +++ b/net/smc/smc_ism.h @@ -10,12 +10,13 @@ #define SMCD_ISM_H #include <linux/uio.h> +#include <linux/mutex.h> #include "smc.h" struct smcd_dev_list { /* List of SMCD devices */ struct list_head list; - spinlock_t lock; /* Protects list of devices */ + struct mutex mutex; /* Protects list of devices */ }; extern struct smcd_dev_list smcd_dev_list; /* list of smcd devices */ |