Skip to content

[Deepin-Kernel-SIG] [linux 6.6.y] [Upstream] Sync fs enhanced update from mainline-v6.8#1960

Open
opsiff wants to merge 4 commits into
deepin-community:linux-6.6.yfrom
opsiff:linux-6.6.y-2026-07-07-fs-2
Open

[Deepin-Kernel-SIG] [linux 6.6.y] [Upstream] Sync fs enhanced update from mainline-v6.8#1960
opsiff wants to merge 4 commits into
deepin-community:linux-6.6.yfrom
opsiff:linux-6.6.y-2026-07-07-fs-2

Conversation

@opsiff

@opsiff opsiff commented Jul 7, 2026

Copy link
Copy Markdown
Member

#1958 v2

brauner and others added 4 commits July 7, 2026 21:32
mainline inclusion
from mainline-v6.8-rc1
category: performance

That really shouldn't have "get" in there as that implies we're bumping
the reference count which we don't do at all. We used to but not anmore.
Now we're just closing the fd and pick that file from the fdtable
without bumping the reference count. Update the wrong documentation
while at it.

Link: https://lore.kernel.org/r/20231130-vfs-files-fixes-v1-1-e73ca6f4ea83@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Conflicts:
	include/linux/fdtable.h
[also change EXPORT_SYMBOL]
(cherry picked from commit a88c955)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
deepin inclusion
category: other

To Keep KAPI, add a shim for file_close_fd.

Fixes: 363e3f1 ("file: s/close_fd_get_file()/file_close_fd()/g")
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
mainline inclusion
from mainline-v6.8-rc1
category: performance

Only io_uring uses __close_fd_get_file(). All it does is hide
current->files but io_uring accesses files_struct directly right now
anyway so it's a bit pointless. Just rename pick_file() to
file_close_fd_locked() and let io_uring use it. Add a lockdep assert in
there that we expect the caller to hold file_lock while we're at it.

Link: https://lore.kernel.org/r/20231130-vfs-files-fixes-v1-2-e73ca6f4ea83@kernel.org
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
(cherry picked from commit 24fa3ae)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
mainline inclusion
from mainline-v6.8-rc1
category: performance

Not every subsystem needs to have their own specialized helper.
Just us the __receive_fd() helper.

Link: https://lore.kernel.org/r/20231130-vfs-files-fixes-v1-4-e73ca6f4ea83@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christian Brauner <brauner@kernel.org>
(cherry picked from commit eac9189)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @opsiff, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from opsiff. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@opsiff opsiff force-pushed the linux-6.6.y-2026-07-07-fs-2 branch from 8d6b93b to 9943c11 Compare July 7, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants