scsi: mpt3sas: Fix, False timeout prints for ioctl and other internal commands...
scsi: mpt3sas: Fix, False timeout prints for ioctl and other internal commands during controller reset. When an ioctl is sent to FW, and if there is a controller reset issued before ioctl gets completed, then in controller reset path all the pending ioctl commands are terminated from "mpt3sas_ctl_reset_handler" function. This will wake up the waiting ioctl commands in ioctl path and print timeouts which are actually not timeouts. Introduced "mpt3sas_base_check_cmd_timeout" function to check and print whether command got timed out (or) terminated due to Host reset. Signed-off-by:Chaitra P B <chaitra.basappa@broadcom.com> Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com>
Showing
- drivers/scsi/mpt3sas/mpt3sas_base.c 38 additions, 14 deletionsdrivers/scsi/mpt3sas/mpt3sas_base.c
- drivers/scsi/mpt3sas/mpt3sas_base.h 2 additions, 0 deletionsdrivers/scsi/mpt3sas/mpt3sas_base.h
- drivers/scsi/mpt3sas/mpt3sas_config.c 3 additions, 4 deletionsdrivers/scsi/mpt3sas/mpt3sas_config.c
- drivers/scsi/mpt3sas/mpt3sas_ctl.c 15 additions, 23 deletionsdrivers/scsi/mpt3sas/mpt3sas_ctl.c
- drivers/scsi/mpt3sas/mpt3sas_scsih.c 7 additions, 9 deletionsdrivers/scsi/mpt3sas/mpt3sas_scsih.c
Please register or sign in to comment