summaryrefslogtreecommitdiff
path: root/crypto/aegis128-neon.c
diff options
context:
space:
mode:
authorD. Wythe <alibuda@linux.alibaba.com>2023-02-02 16:26:42 +0800
committerDavid S. Miller <davem@davemloft.net>2023-02-04 09:48:19 +0000
commitaff7bfed9097435ea38de919befbe2d7771a3e87 (patch)
treec16906013868a13495e55a16f63946d7d4f5f4bc /crypto/aegis128-neon.c
parent4da687448de7b51dcca9d024c6049fa223f5363f (diff)
net/smc: replace mutex rmbs_lock and sndbufs_lock with rw_semaphore
It's clear that rmbs_lock and sndbufs_lock are aims to protect the rmbs list or the sndbufs list. During connection establieshment, smc_buf_get_slot() will always be invoked, and it only performs read semantics in rmbs list and sndbufs list. Based on the above considerations, we replace mutex with rw_semaphore. Only smc_buf_get_slot() use down_read() to allow smc_buf_get_slot() run concurrently, other part use down_write() to keep exclusive semantics. Signed-off-by: D. Wythe <alibuda@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/aegis128-neon.c')
0 files changed, 0 insertions, 0 deletions