smartpqi updates
Subsystems (2)
Don Brace
maintainercover smartpqi updates
These patches are based on Linus's tree
This small set of changes consist of two minor bug fixes:
* Remove an unbalanced call to pqi_ctrl_unbusy in the smp handler. There is not a call to pqi_ctrl_busy.
* Correct driver rmmod hang when using HBA disks with write cache enabled. During removal, SCSI SYNCHRONIZE CACHE requests are blocked with SCSI_MLQUEUE_HOST_BUSY which cause the hang.
Also included is a version change.
---
Don Brace (3):
smartpqi: correct driver removal with HBA disks
smartpqi: correct pqi_sas_smp_handler busy condition
smartpqi: update version to 1.2.16-012
drivers/scsi/smartpqi/smartpqi_init.c | 4 ++-- drivers/scsi/smartpqi/smartpqi_sas_transport.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-)
--
Signature
Don Brace
maintainerPATCH 1/3 smartpqi: correct driver removal with HBA disks
From: Don Brace <[email protected]>
* Correct rmmod hangs when using HBA disks with
write cache enabled.
Do not set controller flag "in_shutdown" during rmmod.
* SCSI SYNCHRONIZE CACHE(10) and SCSI SYNCHRONIZE CACHE(16) requests were blocked with SCSI_MLQUEUE_HOST_BUSY.
--- drivers/scsi/smartpqi/smartpqi_init.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
drivers/scsi/smartpqi/smartpqi_init.c +3 -7
@@ -345,10 +345,9 @@ static inline void pqi_device_remove_start(struct pqi_scsi_dev *device) device->in_remove = true; } -static inline bool pqi_device_in_remove (struct pqi_ctrl_info *ctrl_info, -struct pqi_scsi_dev *device) +static inline bool pqi_device_in_remove (struct pqi_scsi_dev *device) { -return device->in_remove && !ctrl_info->in_shutdown; +return device->in_remove; }static inline void pqi_ctrl_shutdown_start (struct pqi_ctrl_info *ctrl_info)
@@ -5347,8 +5346,7 @@ static int pqi_scsi_queue_command(struct Scsi_Host *shost,atomic_inc (&device->scsi_cmds_outstanding); -if (pqi_ctrl_offline (ctrl_info) ||pqi_device_in_remove (ctrl_info, - device)) { +if (pqi_ctrl_offline (ctrl_info) ||pqi_device_in_remove (device)) {set_host_byte (scmd,DID_NO_CONNECT );pqi_scsi_done (scmd);return 0 ;
@@ -8031,8 +8029,6 @@ static void pqi_pci_remove(struct pci_dev *pci_dev)if (!ctrl_info)return ; - ctrl_info->in_shutdown = true; -pqi_remove_ctrl (ctrl_info); }
Don Brace
maintainerPATCH 2/3 smartpqi: correct pqi_sas_smp_handler busy condition
In reply to Don Brace* Remove unbalanced call to pqi_ctrl_unbusy.
--- drivers/scsi/smartpqi/smartpqi_sas_transport.c | 1 - 1 file changed, 1 deletion(-)
drivers/scsi/smartpqi/smartpqi_sas_transport.c +0 -1
@@ -549,7 +549,6 @@ void pqi_sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, reslen =pqi_build_sas_smp_handler_reply (smp_buf, job, &error_info); out:bsg_job_done (job, rc, reslen); -pqi_ctrl_unbusy (ctrl_info); }struct sas_function_template pqi_sas_transport_functions = { .get_linkerrors = pqi_sas_get_linkerrors,
Don Brace
maintainerPATCH 3/3 smartpqi: update version to 1.2.16-012
In reply to Don Brace--- drivers/scsi/smartpqi/smartpqi_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/smartpqi/smartpqi_init.c +2 -2
@@ -33,11 +33,11 @@#define BUILD_TIMESTAMP #endif -#define DRIVER_VERSION "1.2.16-010" +#define DRIVER_VERSION "1.2.16-012"#define DRIVER_MAJOR 1#define DRIVER_MINOR 2#define DRIVER_RELEASE 16 -#define DRIVER_REVISION 10 +#define DRIVER_REVISION 12#define DRIVER_NAME "Microsemi PQI Driver (v" \ DRIVER_VERSION BUILD_TIMESTAMP ")"
Martin K. Petersen
AppliedDon,
Quoted 7 lines
This small set of changes consist of two minor bug fixes:
* Remove an unbalanced call topqi_ctrl_unbusyin the smp handler. There is not a call topqi_ctrl_busy.
* Correct driver rmmod hang when using HBA disks with write cache enabled. During removal, SCSI SYNCHRONIZE CACHE requests are blocked withSCSI_MLQUEUE_HOST_BUSYwhich cause the hang.
Applied to 5.11/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 10 lines · Don Brace
These patches are based on Linus's tree
This small set of changes consist of two minor bug fixes:
* Remove an unbalanced call topqi_ctrl_unbusyin the smp handler. There is not a call topqi_ctrl_busy.
* Correct driver rmmod hang when using HBA disks with write cache enabled. During removal, SCSI SYNCHRONIZE CACHE requests are blocked withSCSI_MLQUEUE_HOST_BUSYwhich cause the hang.
Also included is a version change.
Applied to 5.11/scsi-queue, thanks!
[1/3] scsi: smartpqi: Correct driver removal with HBA disks
https://git.kernel.org/mkp/scsi/c/1bdf6e934387 [2/3] scsi: smartpqi: Correct pqi_sas_smp_handler busy condition https://git.kernel.org/mkp/scsi/c/408bdd7e5845 [3/3] scsi: smartpqi: Update version to 1.2.16-012 https://git.kernel.org/mkp/scsi/c/5443bdc4cc77
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering