MPTCP Linux Development
 help / color / mirror / Atom feed
* [PATCH mptcp-next v2] Squash to "mptcp: implement .read_sock"
@ 2025-11-18  7:41 Geliang Tang
  2025-11-18  9:26 ` MPTCP CI
  0 siblings, 1 reply; 2+ messages in thread
From: Geliang Tang @ 2025-11-18  7:41 UTC (permalink / raw)
  To: mptcp; +Cc: Geliang Tang

From: Geliang Tang <tanggeliang@kylinos.cn>

Squash to "[v13,2/8] mptcp: implement .read_sock".

Add msk_owned_by_me().

v2:
 - use msk_owned_by_me instead of sock_owned_by_me.

Based-on: <cover.1761198660.git.geliang@kernel.org>

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
 net/mptcp/protocol.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index c64494b15a40..13b858b47cf1 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -4304,6 +4304,8 @@ static int mptcp_read_sock(struct sock *sk, read_descriptor_t *desc,
 	int copied = 0;
 	u32 offset;
 
+	msk_owned_by_me(msk);
+
 	if (sk->sk_state == TCP_LISTEN)
 		return -ENOTCONN;
 	while ((skb = mptcp_recv_skb(sk, &offset)) != NULL) {
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-18  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-18  7:41 [PATCH mptcp-next v2] Squash to "mptcp: implement .read_sock" Geliang Tang
2025-11-18  9:26 ` MPTCP CI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox