Module Name: src Committed By: mlelstv Date: Thu Dec 28 15:58:24 UTC 2023
Modified Files: src/sys/dev/iscsi: iscsi_main.c Log Message: Use correct status value SCSI_BUSY (0x08) instead of XS_BUSY (7) when running out of sessions. The bug had no impact as scsipi was only comparing against SCSI_CHECK (0x02) and SCSI_QUEUE_FULL (0x28). To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/dev/iscsi/iscsi_main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/iscsi/iscsi_main.c diff -u src/sys/dev/iscsi/iscsi_main.c:1.41 src/sys/dev/iscsi/iscsi_main.c:1.42 --- src/sys/dev/iscsi/iscsi_main.c:1.41 Tue Sep 13 13:09:16 2022 +++ src/sys/dev/iscsi/iscsi_main.c Thu Dec 28 15:58:24 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: iscsi_main.c,v 1.41 2022/09/13 13:09:16 mlelstv Exp $ */ +/* $NetBSD: iscsi_main.c,v 1.42 2023/12/28 15:58:24 mlelstv Exp $ */ /*- * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc. @@ -490,7 +490,7 @@ iscsi_scsipi_request(struct scsipi_chann DEB(9, ("ISCSI: refcount too high: %d, winsize %d\n", sess->s_refcount, sess->s_send_window)); xs->error = XS_BUSY; - xs->status = XS_BUSY; + xs->status = SCSI_BUSY; scsipi_done(xs); return; }