diff options
| author | Kuniyuki Iwashima <[email protected]> | 2025-07-02 22:35:15 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-09 01:05:25 +0000 |
| commit | d0aac85449dec992bb8dc2503f2cb9e94ef436db (patch) | |
| tree | 40184f8eb835303e3e034094d8b579d91284f383 /net/lapb/lapb_iface.c | |
| parent | af_unix: Don't check SOCK_DEAD in unix_stream_read_skb(). (diff) | |
| download | kernel-d0aac85449dec992bb8dc2503f2cb9e94ef436db.tar.gz kernel-d0aac85449dec992bb8dc2503f2cb9e94ef436db.zip | |
af_unix: Don't use skb_recv_datagram() in unix_stream_read_skb().
unix_stream_read_skb() calls skb_recv_datagram() with MSG_DONTWAIT,
which is mostly equivalent to sock_error(sk) + skb_dequeue().
In the following patch, we will add a new field to cache the number
of bytes in the receive queue. Then, we want to avoid introducing
atomic ops in the fast path, so we will reuse the receive queue lock.
As a preparation for the change, let's not use skb_recv_datagram()
in unix_stream_read_skb().
Note that sock_error() is now moved out of the u->iolock mutex as
the mutex does not synchronise the peer's close() at all.
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions
