hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/net/core/sock.c
....@@ -3069,11 +3069,12 @@
30693069 if (sk->sk_lock.owned)
30703070 __lock_sock(sk);
30713071 sk->sk_lock.owned = 1;
3072
- spin_unlock_bh(&sk->sk_lock.slock);
3072
+ spin_unlock(&sk->sk_lock.slock);
30733073 /*
30743074 * The sk_lock has mutex_lock() semantics here:
30753075 */
30763076 mutex_acquire(&sk->sk_lock.dep_map, subclass, 0, _RET_IP_);
3077
+ local_bh_enable();
30773078 }
30783079 EXPORT_SYMBOL(lock_sock_nested);
30793080
....@@ -3122,11 +3123,12 @@
31223123
31233124 __lock_sock(sk);
31243125 sk->sk_lock.owned = 1;
3125
- spin_unlock_bh(&sk->sk_lock.slock);
3126
+ spin_unlock(&sk->sk_lock.slock);
31263127 /*
31273128 * The sk_lock has mutex_lock() semantics here:
31283129 */
31293130 mutex_acquire(&sk->sk_lock.dep_map, 0, 0, _RET_IP_);
3131
+ local_bh_enable();
31303132 return true;
31313133 }
31323134 EXPORT_SYMBOL(lock_sock_fast);