From: Qican Ma <goonsomeway@gmail.com>
To: pc@manguebit.org
Cc: linkinjeon@kernel.org, metze@samba.org, tom@talpey.com,
ronniesahlberg@gmail.com, sprasad@microsoft.com,
bharathsm@microsoft.com, linux-cifs@vger.kernel.org
Subject: Re: [PATCH v2] smb: client: protect server->smbd_conn with RCU and refcounting
Date: Fri, 27 Nov 2026 00:13:27 +0800 [thread overview]
Message-ID: <179570960786.92818.11235763422476856997@gmail.com> (raw)
In-Reply-To: <6dccc6ca08e055f4c00df3596391d940@manguebit.org>
Hi Paulo,
Thanks for taking a look. I have sent v3 addressing the sashiko
review: cifs_prepare_read/write() no longer take and drop
conn->refcount on every I/O subrequest. They now guard on
server->rdma and read max_frmr_depth under rcu_read_lock() only,
which is sufficient because smbd_destroy() waits for
synchronize_rcu() before releasing the socket and freeing the
connection. The refcounting is kept for the paths that actually use
the connection (smbd_send(), smbd_recv(), smbd_register_mr()).
Thanks,
Qican Ma
next prev parent reply other threads:[~2026-11-26 16:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 7:54 [PATCH v2] smb: client: protect server->smbd_conn with RCU and refcounting Qican Ma
2026-11-26 15:22 ` Paulo Alcantara
2026-11-26 16:13 ` Qican Ma [this message]
2026-11-26 16:33 ` Paulo Alcantara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179570960786.92818.11235763422476856997@gmail.com \
--to=goonsomeway@gmail.com \
--cc=bharathsm@microsoft.com \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=metze@samba.org \
--cc=pc@manguebit.org \
--cc=ronniesahlberg@gmail.com \
--cc=sprasad@microsoft.com \
--cc=tom@talpey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.