net/smc: use mutex instead of rwlock_t to protect buffers
authorKarsten Graul <kgraul@linux.ibm.com>
Wed, 29 Apr 2020 15:10:48 +0000 (17:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Apr 2020 19:26:33 +0000 (12:26 -0700)
commitfaca536008375bece23783e7382b5d0356c13ba5
tree69406ee8f26c28173e6956e1547aa98a86547a42
parentef79d439cd124d9fb7258bb35d44c71aec11b829
net/smc: use mutex instead of rwlock_t to protect buffers

The locks for sndbufs and rmbs are never used from atomic context. Using
a mutex for these locks will allow to nest locks with other mutexes.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c
net/smc/smc_core.h