Commit 9253e66
iser-target: Fix variable-length response error completion
Since commit "2426bd456a6 target: Report correct response ..."
we might get a command with data_size that does not fit to
the number of allocated data sg elements. Given that we rely on
cmd t_data_nents which might be different than the data_size,
we sometimes receive local length error completion. The correct
approach would be to take the command data_size into account when
constructing the ib sg_list.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Jenny Falkovich <jennyf@mellanox.com>
Cc: stable@vger.kernel.org # 3.16+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>1 parent b2feda4 commit 9253e66
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2380 | 2380 | | |
2381 | 2381 | | |
2382 | 2382 | | |
2383 | | - | |
2384 | 2383 | | |
2385 | 2384 | | |
2386 | 2385 | | |
| |||
2400 | 2399 | | |
2401 | 2400 | | |
2402 | 2401 | | |
| 2402 | + | |
| 2403 | + | |
2403 | 2404 | | |
2404 | 2405 | | |
2405 | 2406 | | |
2406 | 2407 | | |
| 2408 | + | |
2407 | 2409 | | |
2408 | 2410 | | |
2409 | 2411 | | |
2410 | | - | |
| 2412 | + | |
2411 | 2413 | | |
2412 | 2414 | | |
2413 | 2415 | | |
| |||
0 commit comments