diff options
Diffstat (limited to 'net/unix/garbage.c')
| -rw-r--r-- | net/unix/garbage.c | 8 | 
1 files changed, 1 insertions, 7 deletions
| diff --git a/net/unix/garbage.c b/net/unix/garbage.c index 23efb78fe9ef..06d94ad999e9 100644 --- a/net/unix/garbage.c +++ b/net/unix/garbage.c @@ -337,11 +337,6 @@ static bool unix_vertex_dead(struct unix_vertex *vertex)  	return true;  } -enum unix_recv_queue_lock_class { -	U_RECVQ_LOCK_NORMAL, -	U_RECVQ_LOCK_EMBRYO, -}; -  static void unix_collect_queue(struct unix_sock *u, struct sk_buff_head *hitlist)  {  	skb_queue_splice_init(&u->sk.sk_receive_queue, hitlist); @@ -375,8 +370,7 @@ static void unix_collect_skb(struct list_head *scc, struct sk_buff_head *hitlist  			skb_queue_walk(queue, skb) {  				struct sk_buff_head *embryo_queue = &skb->sk->sk_receive_queue; -				/* listener -> embryo order, the inversion never happens. */ -				spin_lock_nested(&embryo_queue->lock, U_RECVQ_LOCK_EMBRYO); +				spin_lock(&embryo_queue->lock);  				unix_collect_queue(unix_sk(skb->sk), hitlist);  				spin_unlock(&embryo_queue->lock);  			} |