]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad81a33f4a3c33355300692a96a5f953920e3ffa
tree69406ee8f26c28173e6956e1547aa98a86547a42
parente0f44e8883c56ee200a7f4d2ed87a06e29680b06
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