Skip to contentSkip to conversation

stuck localhost TCP connections, v2.6.26-rc3+

PATCH Alexey Kuznetsov 1 participant 1 message Jun 11, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello!

Quoted 4 lines · David Miller

I took a close look at this, it seems this patch adds an ABBA deadlock. But I might be wrong.

Yes, this is not a real deadlock. But also it is not even a lock. bh_lock_sock on listening socket is not enough to lock it.

Seems, the solution would be forcing bh_lock_sock() to protect accept_queue, which is a mess. Or adding a separate spinlock, like it was done with syn_wait_lock. Also not good.

Alexey