.. | .. |
---|
3069 | 3069 | if (sk->sk_lock.owned) |
---|
3070 | 3070 | __lock_sock(sk); |
---|
3071 | 3071 | sk->sk_lock.owned = 1; |
---|
3072 | | - spin_unlock_bh(&sk->sk_lock.slock); |
---|
| 3072 | + spin_unlock(&sk->sk_lock.slock); |
---|
3073 | 3073 | /* |
---|
3074 | 3074 | * The sk_lock has mutex_lock() semantics here: |
---|
3075 | 3075 | */ |
---|
3076 | 3076 | mutex_acquire(&sk->sk_lock.dep_map, subclass, 0, _RET_IP_); |
---|
| 3077 | + local_bh_enable(); |
---|
3077 | 3078 | } |
---|
3078 | 3079 | EXPORT_SYMBOL(lock_sock_nested); |
---|
3079 | 3080 | |
---|
.. | .. |
---|
3122 | 3123 | |
---|
3123 | 3124 | __lock_sock(sk); |
---|
3124 | 3125 | sk->sk_lock.owned = 1; |
---|
3125 | | - spin_unlock_bh(&sk->sk_lock.slock); |
---|
| 3126 | + spin_unlock(&sk->sk_lock.slock); |
---|
3126 | 3127 | /* |
---|
3127 | 3128 | * The sk_lock has mutex_lock() semantics here: |
---|
3128 | 3129 | */ |
---|
3129 | 3130 | mutex_acquire(&sk->sk_lock.dep_map, 0, 0, _RET_IP_); |
---|
| 3131 | + local_bh_enable(); |
---|
3130 | 3132 | return true; |
---|
3131 | 3133 | } |
---|
3132 | 3134 | EXPORT_SYMBOL(lock_sock_fast); |
---|