2001-07-23 09:38:37

by Aviv Greenberg

[permalink] [raw]
Subject: tcp_write_space

Hi,

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

Is this intentional ?

--
- Aviv Greeberg


2001-07-24 17:05:12

by Alexey Kuznetsov

[permalink] [raw]
Subject: Re: tcp_write_space

Hello!

> 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