Skip to contentSkip to conversation

tcp_write_space

DISCUSSION Aviv Greenberg 2 participants 2 messages Jul 23, 2001 – Jul 24, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

Why isn't the sk->callback_lock aquired in the tcp_write_space callback ??

Is this intentional ?

Signature · 1 line
	- Aviv Greeberg
#1 lore raw

Hello!

Quoted 4 lines

Why isn't the sk->callback_lock aquired in the tcp_write_space callback ??

Is this intentional ?

Yes, this lock is not required in this case because tcp_write_space() is called only from under socket lock, which is stronger than callback_lock. This is true _only_ for TCP sockets.

Alexey