Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: aha152x: Return SCSI_MLQUEUE_HOST_BUSY instead of 0x2003

.queuecommand() implementations are expected to return a SCSI_MLQUEUE_*
value. Return SCSI_MLQUEUE_HOST_BUSY from aha152x_internal_queue()
instead of 0x2003. This patch doesn't change any functionality since
scsi_dispatch_cmd() converts all return values other than SCSI_MLQUEUE_*
into SCSI_MLQUEUE_HOST_BUSY.

Cc: Juergen E. Fischer <fischer@norbit.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20260115210357.2501991-2-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
1bf0febf a9e03ec0

+2 -2
+2 -2
drivers/scsi/aha152x.c
··· 939 939 if (acp->phase & (resetting | check_condition)) { 940 940 if (!SCpnt->host_scribble || SCSEM(SCpnt) || SCNEXT(SCpnt)) { 941 941 scmd_printk(KERN_ERR, SCpnt, "cannot reuse command\n"); 942 - return FAILED; 942 + return SCSI_MLQUEUE_HOST_BUSY; 943 943 } 944 944 } else { 945 945 SCpnt->host_scribble = kmalloc(sizeof(struct aha152x_scdata), GFP_ATOMIC); 946 946 if(!SCpnt->host_scribble) { 947 947 scmd_printk(KERN_ERR, SCpnt, "allocation failed\n"); 948 - return FAILED; 948 + return SCSI_MLQUEUE_HOST_BUSY; 949 949 } 950 950 } 951 951