diff options
| author | Eric Dumazet <[email protected]> | 2023-03-07 14:59:59 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-03-08 13:21:47 +0000 |
| commit | 10369080454d87ee5b2db211ce947cb3118f0e13 (patch) | |
| tree | 0fc9e0f971170f352455c006a6e0fbbe3d22db18 /io_uring/rsrc.c | |
| parent | Merge branch 'sparx5-tc-flower-templates' (diff) | |
| download | kernel-10369080454d87ee5b2db211ce947cb3118f0e13.tar.gz kernel-10369080454d87ee5b2db211ce947cb3118f0e13.zip | |
net: reclaim skb->scm_io_uring bit
Commit 0091bfc81741 ("io_uring/af_unix: defer registered
files gc to io_uring release") added one bit to struct sk_buff.
This structure is critical for networking, and we try very hard
to not add bloat on it, unless absolutely required.
For instance, we can use a specific destructor as a wrapper
around unix_destruct_scm(), to identify skbs that unix_gc()
has to special case.
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Pavel Begunkov <[email protected]>
Cc: Thadeu Lima de Souza Cascardo <[email protected]>
Cc: Jens Axboe <[email protected]>
Reviewed-by: Jens Axboe <[email protected]>
Reviewed-by: Pavel Begunkov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'io_uring/rsrc.c')
| -rw-r--r-- | io_uring/rsrc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c index a59fc02de598..27ceda3b50cf 100644 --- a/io_uring/rsrc.c +++ b/io_uring/rsrc.c @@ -867,8 +867,7 @@ int __io_scm_file_account(struct io_ring_ctx *ctx, struct file *file) UNIXCB(skb).fp = fpl; skb->sk = sk; - skb->scm_io_uring = 1; - skb->destructor = unix_destruct_scm; + skb->destructor = io_uring_destruct_scm; refcount_add(skb->truesize, &sk->sk_wmem_alloc); } |
