* [PATCH] net/ceph: update outdated comment
@ 2026-02-23 13:15 kexinsun
2026-02-24 0:46 ` Viacheslav Dubeyko
0 siblings, 1 reply; 2+ messages in thread
From: kexinsun @ 2026-02-23 13:15 UTC (permalink / raw)
To: idryomov
Cc: amarkuze, slava, ceph-devel, linux-kernel, julia.lawall,
xutong.ma, yunbolyu, ratnadiraw, kexinsun
From: kexinsun <kexinsun@smail.nju.edu.cn>
The function try_write() was renamed to ceph_con_v1_try_write()
in commit 566050e17e53 ("libceph: separate msgr1 protocol
implementation") and subsequently moved to net/ceph/messenger_v1.c
in commit 2f713615ddd9 ("libceph: move msgr1 protocol implementation
to its own file"). Update the comment in ceph_sock_write_space()
accordingly.
Signed-off-by: kexinsun <kexinsun@smail.nju.edu.cn>
---
net/ceph/messenger.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index 108adb583744..a041725ddedf 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -368,8 +368,8 @@ static void ceph_sock_write_space(struct sock *sk)
/* only queue to workqueue if there is data we want to write,
* and there is sufficient space in the socket buffer to accept
* more data. clear SOCK_NOSPACE so that ceph_sock_write_space()
- * doesn't get called again until try_write() fills the socket
- * buffer. See net/ipv4/tcp_input.c:tcp_check_space()
+ * doesn't get called again until ceph_con_v1_try_write() fills
+ * the socket buffer. See net/ipv4/tcp_input.c:tcp_check_space()
* and net/core/stream.c:sk_stream_write_space().
*/
if (ceph_con_flag_test(con, CEPH_CON_F_WRITE_PENDING)) {
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] net/ceph: update outdated comment
2026-02-23 13:15 [PATCH] net/ceph: update outdated comment kexinsun
@ 2026-02-24 0:46 ` Viacheslav Dubeyko
0 siblings, 0 replies; 2+ messages in thread
From: Viacheslav Dubeyko @ 2026-02-24 0:46 UTC (permalink / raw)
To: idryomov, kexinsun
Cc: ratnadiraw, ceph-devel, linux-kernel, julia.lawall, Alex Markuze,
slava, xutong.ma, yunbolyu
On Mon, 2026-02-23 at 21:15 +0800, kexinsun@smail.nju.edu.cn wrote:
> From: kexinsun <kexinsun@smail.nju.edu.cn>
>
> The function try_write() was renamed to ceph_con_v1_try_write()
> in commit 566050e17e53 ("libceph: separate msgr1 protocol
> implementation") and subsequently moved to net/ceph/messenger_v1.c
> in commit 2f713615ddd9 ("libceph: move msgr1 protocol implementation
> to its own file"). Update the comment in ceph_sock_write_space()
> accordingly.
>
> Signed-off-by: kexinsun <kexinsun@smail.nju.edu.cn>
> ---
> net/ceph/messenger.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
> index 108adb583744..a041725ddedf 100644
> --- a/net/ceph/messenger.c
> +++ b/net/ceph/messenger.c
> @@ -368,8 +368,8 @@ static void ceph_sock_write_space(struct sock *sk)
> /* only queue to workqueue if there is data we want to write,
> * and there is sufficient space in the socket buffer to accept
> * more data. clear SOCK_NOSPACE so that ceph_sock_write_space()
> - * doesn't get called again until try_write() fills the socket
> - * buffer. See net/ipv4/tcp_input.c:tcp_check_space()
> + * doesn't get called again until ceph_con_v1_try_write() fills
> + * the socket buffer. See net/ipv4/tcp_input.c:tcp_check_space()
> * and net/core/stream.c:sk_stream_write_space().
> */
> if (ceph_con_flag_test(con, CEPH_CON_F_WRITE_PENDING)) {
Makes sense to me.
Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Thanks,
Slava.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-24 0:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-23 13:15 [PATCH] net/ceph: update outdated comment kexinsun
2026-02-24 0:46 ` Viacheslav Dubeyko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®