]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: rename server mid_lock to mid_queue_lock
authorWang Zhaolong <wangzhaolong@huaweicloud.com>
Mon, 4 Aug 2025 13:40:03 +0000 (21:40 +0800)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Aug 2025 16:25:48 +0000 (11:25 -0500)
commitf3ba7c9b0421e3935998334a860bd88f2ffdb18e
tree1e113a63768c7a6ecf0e5f33b01dfdbadc0a2577
parent5b432ae5dff5eb2e6acd55473309fdd5c16ff779
smb: client: rename server mid_lock to mid_queue_lock

This is step 1/4 of a patch series to fix mid_q_entry memory leaks
caused by race conditions in callback execution.

The current mid_lock name is somewhat ambiguous about what it protects.
To prepare for splitting this lock into separate, more granular locks,
this patch renames mid_lock to mid_queue_lock to clearly indicate its
specific responsibility for protecting the pending_mid_q list and
related queue operations.

No functional changes are made in this patch - it only prepares the
codebase for the lock splitting that follows.

- mid_queue_lock for queue operations
- mid_counter_lock for mid counter operations
- per-mid locks for individual mid state management

Signed-off-by: Wang Zhaolong <wangzhaolong@huaweicloud.com>
Acked-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifs_debug.c
fs/smb/client/cifsglob.h
fs/smb/client/connect.c
fs/smb/client/smb1ops.c
fs/smb/client/smb2ops.c
fs/smb/client/smb2transport.c
fs/smb/client/transport.c