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: megaraid: Return SCSI_MLQUEUE_HOST_BUSY instead of 1

.queuecommand() implementations are expected to return a SCSI_MLQUEUE_*
value. Return SCSI_MLQUEUE_HOST_BUSY from megaraid_queue_lck() instead
of 1. 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: Kashyap Desai <kashyap.desai@broadcom.com>
Cc: Sumit Saxena <sumit.saxena@broadcom.com>
Cc: Shivasharan S <shivasharan.srikanteshwara@broadcom.com>
Cc: Chandrakanth patil <chandrakanth.patil@broadcom.com>
Cc: megaraidlinux.pdl@broadcom.com
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260115210357.2501991-3-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

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

+5 -5
+5 -5
drivers/scsi/megaraid.c
··· 640 640 } 641 641 642 642 if(!(scb = mega_allocate_scb(adapter, cmd))) { 643 - *busy = 1; 643 + *busy = SCSI_MLQUEUE_HOST_BUSY; 644 644 return NULL; 645 645 } 646 646 ··· 688 688 689 689 /* Allocate a SCB and initialize passthru */ 690 690 if(!(scb = mega_allocate_scb(adapter, cmd))) { 691 - *busy = 1; 691 + *busy = SCSI_MLQUEUE_HOST_BUSY; 692 692 return NULL; 693 693 } 694 694 pthru = scb->pthru; ··· 730 730 731 731 /* Allocate a SCB and initialize mailbox */ 732 732 if(!(scb = mega_allocate_scb(adapter, cmd))) { 733 - *busy = 1; 733 + *busy = SCSI_MLQUEUE_HOST_BUSY; 734 734 return NULL; 735 735 } 736 736 mbox = (mbox_t *)scb->raw_mbox; ··· 870 870 871 871 /* Allocate a SCB and initialize mailbox */ 872 872 if(!(scb = mega_allocate_scb(adapter, cmd))) { 873 - *busy = 1; 873 + *busy = SCSI_MLQUEUE_HOST_BUSY; 874 874 return NULL; 875 875 } 876 876 ··· 898 898 else { 899 899 /* Allocate a SCB and initialize passthru */ 900 900 if(!(scb = mega_allocate_scb(adapter, cmd))) { 901 - *busy = 1; 901 + *busy = SCSI_MLQUEUE_HOST_BUSY; 902 902 return NULL; 903 903 } 904 904