Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 752d8680 authored by Nicholas Bellinger's avatar Nicholas Bellinger
Browse files

iscsi-target: Fix SNACK Type 1 + BegRun=0 handling



This patch fixes Status SNACK handling of BegRun=0 to allow
for all unacknowledged respones to be resent, instead of
always assuming that BegRun would be an explicit value less
than the current ExpStatSN.

Reported-by: default avatarsantosh kulkarni <santosh.kulkarni@calsoftinc.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 6a16d7be
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -507,7 +507,9 @@ int iscsit_handle_status_snack(
	u32 last_statsn;
	int found_cmd;

	if (conn->exp_statsn > begrun) {
	if (!begrun) {
		begrun = conn->exp_statsn;
	} else if (conn->exp_statsn > begrun) {
		pr_err("Got Status SNACK Begrun: 0x%08x, RunLength:"
			" 0x%08x but already got ExpStatSN: 0x%08x on CID:"
			" %hu.\n", begrun, runlength, conn->exp_statsn,