Commit 34abd40
smb: server: make use of smbdirect_socket.send_io.bcredits
It turns out that our code will corrupt the stream of
reassabled data transfer messages when we trigger an
immendiate (empty) send.
In order to fix this we'll have a single 'batch' credit per
connection. And code getting that credit is free to use
as much messages until remaining_length reaches 0, then
the batch credit it given back and the next logical send can
happen.
Cc: <stable@vger.kernel.org> # 6.18.x
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent 8106978 commit 34abd40
1 file changed
Lines changed: 51 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
1152 | 1153 | | |
1153 | 1154 | | |
1154 | 1155 | | |
| 1156 | + | |
1155 | 1157 | | |
1156 | 1158 | | |
1157 | 1159 | | |
1158 | 1160 | | |
1159 | 1161 | | |
1160 | 1162 | | |
1161 | 1163 | | |
1162 | | - | |
| 1164 | + | |
1163 | 1165 | | |
1164 | 1166 | | |
1165 | | - | |
| 1167 | + | |
1166 | 1168 | | |
1167 | 1169 | | |
1168 | 1170 | | |
| |||
1204 | 1206 | | |
1205 | 1207 | | |
1206 | 1208 | | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1207 | 1216 | | |
1208 | 1217 | | |
1209 | 1218 | | |
| |||
1229 | 1238 | | |
1230 | 1239 | | |
1231 | 1240 | | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
1232 | 1260 | | |
1233 | 1261 | | |
1234 | 1262 | | |
| |||
1430 | 1458 | | |
1431 | 1459 | | |
1432 | 1460 | | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
1433 | 1471 | | |
1434 | 1472 | | |
1435 | 1473 | | |
| |||
1482 | 1520 | | |
1483 | 1521 | | |
1484 | 1522 | | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
1485 | 1530 | | |
1486 | 1531 | | |
1487 | 1532 | | |
| |||
1490 | 1535 | | |
1491 | 1536 | | |
1492 | 1537 | | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
1493 | 1541 | | |
1494 | 1542 | | |
1495 | 1543 | | |
| |||
1961 | 2009 | | |
1962 | 2010 | | |
1963 | 2011 | | |
| 2012 | + | |
1964 | 2013 | | |
1965 | 2014 | | |
1966 | 2015 | | |
| |||
0 commit comments