Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933781AbbFSVNO (ORCPT ); Fri, 19 Jun 2015 17:13:14 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:19330 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756163AbbFSUjZ (ORCPT ); Fri, 19 Jun 2015 16:39:25 -0400 To: Sreekanth Reddy Cc: jejb@kernel.org, hch@infradead.org, jthumshirn@suse.de, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, JBottomley@Parallels.com, Sathya.Prakash@avagotech.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 14/20 v1] [SCSI] mpt3sas: Complete the SCSI command with DID_RESET status for log_info value 0x0x32010081 From: "Martin K. Petersen" Organization: Oracle Corporation References: <1434432924-40632-1-git-send-email-Sreekanth.Reddy@avagotech.com> Date: Fri, 19 Jun 2015 16:38:48 -0400 In-Reply-To: <1434432924-40632-1-git-send-email-Sreekanth.Reddy@avagotech.com> (Sreekanth Reddy's message of "Tue, 16 Jun 2015 11:05:24 +0530") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 26 >>>>> Sreekanth Reddy writes: > For any SCSI command, if the driver receives IOC status = > SCSI_IOC_TERMINATED and log info = 0x32010081 then that command will > be completed with DID_RESET host status. > The definition of this log info value is "Virtual IO has failed and > has to be retried". > Firmware will provide this log info value with IOC Status > "SCSI_IOC_TERMINATED", whenever a drive (with is a part of a volume) > is pulled and pushed back within some minimal delay. With this log > info value, firmware informs the driver to retry the failed IO command > infinite times, so to provide some time for the firmware to discover > the reinserted drive successfully instated of just retrying failed > command for five times(doesn't giving enough time for firmware to > complete the drive discovery) and failing the IO permanently even > though drive came back successfully. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/