Commit 0158e86
smb: server: make use of smbdirect_socket.send_io.lcredits.*
This introduces logic to prevent on overflow of
the send submission queue with ib_post_send() easier.
As we first get a local credit and then a remote credit
before we mark us as pending.
From reading the git history of the linux smbdirect
implementations in client and server) it was seen
that a peer granted more credits than we requested.
I guess that only happened because of bugs in our
implementation which was active as client and server.
I guess Windows won't do that.
So the local credits make sure we only use the amount
of credits we asked for.
Fixes: 0626e66 ("cifsd: add server handler for central processing and tranport layers")
Cc: Namjae Jeon <[email protected]>
Cc: Steve French <[email protected]>
Cc: Tom Talpey <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Stefan Metzmacher <[email protected]>
Acked-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent a902274 commit 0158e86
1 file changed
+37
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| |||
916 | 917 | | |
917 | 918 | | |
918 | 919 | | |
| 920 | + | |
919 | 921 | | |
920 | 922 | | |
921 | 923 | | |
| |||
930 | 932 | | |
931 | 933 | | |
932 | 934 | | |
| 935 | + | |
933 | 936 | | |
934 | 937 | | |
935 | 938 | | |
| 939 | + | |
936 | 940 | | |
937 | 941 | | |
938 | 942 | | |
| |||
942 | 946 | | |
943 | 947 | | |
944 | 948 | | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
945 | 952 | | |
946 | 953 | | |
947 | 954 | | |
| |||
1081 | 1088 | | |
1082 | 1089 | | |
1083 | 1090 | | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1084 | 1108 | | |
1085 | 1109 | | |
1086 | 1110 | | |
| |||
1268 | 1292 | | |
1269 | 1293 | | |
1270 | 1294 | | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
1271 | 1299 | | |
1272 | 1300 | | |
1273 | | - | |
| 1301 | + | |
1274 | 1302 | | |
1275 | 1303 | | |
1276 | 1304 | | |
1277 | 1305 | | |
1278 | 1306 | | |
1279 | 1307 | | |
1280 | 1308 | | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
| 1309 | + | |
| 1310 | + | |
1285 | 1311 | | |
1286 | 1312 | | |
1287 | 1313 | | |
| |||
1319 | 1345 | | |
1320 | 1346 | | |
1321 | 1347 | | |
| 1348 | + | |
1322 | 1349 | | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
1323 | 1353 | | |
1324 | 1354 | | |
1325 | 1355 | | |
| |||
1897 | 1927 | | |
1898 | 1928 | | |
1899 | 1929 | | |
| 1930 | + | |
| 1931 | + | |
1900 | 1932 | | |
1901 | 1933 | | |
1902 | 1934 | | |
| |||
0 commit comments