aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorKoby Elbaz <[email protected]>2023-02-23 18:17:02 +0200
committerOded Gabbay <[email protected]>2023-03-15 13:29:15 +0200
commit7ffb5ced2bc3578b221007467cef8a032c189b0a (patch)
tree429d04ac8065b38a5c36a4b35048e8fff8e24c84 /net/lapb/lapb_timer.c
parentc7ac65c881eae0358b91bd2045ab81b452d2e716 (diff)
accel/habanalabs: use a mutex rather than a spinlock
There are two reasons why mutex is better here: 1. There's a critical section relatively long, where in certain scenarios (e.g., multiple VM allocations) taking a spinlock might cause noticeable performance degradation. 2. It will remove the incorrect usage of mutex under spin_lock (where preemption is disabled). Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Koby Elbaz <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions