Skip to contentSkip to conversation

VSOCK: fix outdated sk_state value in hvs_release()

PATCH Applied Stefan Hajnoczi 3 participants 3 messages Dec 5, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 VSOCK: fix outdated sk_state value in hvs_release()

Since commit 3b4477d2dcf2709d0be89e2a8dced3d0f4a017f2 ("VSOCK: use TCP state constants for sk_state") VSOCK has used TCP_* constants for sk_state.

Commit b4562ca7925a3bedada87a3dd072dd5bad043288 ("hv_sock: add locking in the open/close/release code paths") reintroduced the SS_DISCONNECTING constant.

This patch replaces the old SS_DISCONNECTING with the new TCP_CLOSING constant.

---
 net/vmw_vsock/hyperv_transport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/vmw_vsock/hyperv_transport.c +1 -1
index 5583df708b8c..a827547aa102 100644
@@ -487,7 +487,7 @@ static void hvs_release(struct vsock_sock *vsk)
 
 	lock_sock(sk);
 
-	sk->sk_state = SS_DISCONNECTING;
+	sk->sk_state = TCP_CLOSING;
 	vsock_remove_sock(vsk);
 
 	release_sock(sk);
Signature · 1 line
2.14.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 37 lines · Stefan Hajnoczi

Since commit 3b4477d2dcf2709d0be89e2a8dced3d0f4a017f2 ("VSOCK: use TCP state constants for sk_state") VSOCK has used TCP_* constants for sk_state.

Commit b4562ca7925a3bedada87a3dd072dd5bad043288 ("hv_sock: add locking in the open/close/release code paths") reintroduced the SS_DISCONNECTING constant.

This patch replaces the old SS_DISCONNECTING with the new TCP_CLOSING constant.

---
net/vmw_vsock/hyperv_transport.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
net/vmw_vsock/hyperv_transport.c +1 -1
index 5583df708b8c..a827547aa102 100644
@@ -487,7 +487,7 @@ static void hvs_release(struct vsock_sock *vsk)
 
 	lock_sock(sk);
 
-	sk->sk_state = SS_DISCONNECTING;
+	sk->sk_state = TCP_CLOSING;
 	vsock_remove_sock(vsk);
 
 	release_sock(sk);
Signature · 1 line
2.14.3
maintainer Applied
#2 lore raw
In reply to Stefan Hajnoczi

From: Stefan Hajnoczi <[email protected]>
Date: Tue, 5 Dec 2017 11:31:14 +0000

Quoted 8 lines

Since commit 3b4477d2dcf2709d0be89e2a8dced3d0f4a017f2 ("VSOCK: use TCP state constants for sk_state") VSOCK has used TCP_* constants for sk_state.

Commit b4562ca7925a3bedada87a3dd072dd5bad043288 ("hv_sock: add locking in the open/close/release code paths") reintroduced the SS_DISCONNECTING constant.

Quoted 6 lines

This patch replaces the old SS_DISCONNECTING with the new TCP_CLOSING constant.

Applied.