Commit 98d20e5
vsock: cancel packets when failing to connect
[ Upstream commit 380feae ]
Otherwise we'll leave the packets queued until releasing vsock device.
E.g., if guest is slow to start up, resulting ETIMEDOUT on connect, guest
will get the connect requests from failed host sockets.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Peng Tao <bergwolf@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 482b3f9 commit 98d20e5
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1104 | 1112 | | |
1105 | 1113 | | |
1106 | 1114 | | |
1107 | 1115 | | |
| 1116 | + | |
1108 | 1117 | | |
1109 | 1118 | | |
1110 | 1119 | | |
| |||
1115 | 1124 | | |
1116 | 1125 | | |
1117 | 1126 | | |
| 1127 | + | |
1118 | 1128 | | |
1119 | 1129 | | |
| 1130 | + | |
| 1131 | + | |
1120 | 1132 | | |
1121 | 1133 | | |
1122 | 1134 | | |
| |||
1223 | 1235 | | |
1224 | 1236 | | |
1225 | 1237 | | |
| 1238 | + | |
1226 | 1239 | | |
1227 | 1240 | | |
1228 | 1241 | | |
1229 | 1242 | | |
1230 | 1243 | | |
| 1244 | + | |
1231 | 1245 | | |
1232 | 1246 | | |
1233 | 1247 | | |
| |||
0 commit comments