From patchwork Tue Oct 26 13:53:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chauhan, Vijay" X-Patchwork-Id: 282662 Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9QDwVre029457 for ; Tue, 26 Oct 2010 13:58:51 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9QDu4Lt020860; Tue, 26 Oct 2010 09:56:05 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9QDu2Wx003215 for ; Tue, 26 Oct 2010 09:56:02 -0400 Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.11]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9QDtvsu019437 for ; Tue, 26 Oct 2010 09:55:57 -0400 Received: from na3sys009aog109.obsmtp.com (na3sys009aog109.obsmtp.com [74.125.149.201]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9QDtdCC021808 for ; Tue, 26 Oct 2010 09:55:39 -0400 Received: from source ([147.145.40.20]) by na3sys009aob109.postini.com ([74.125.148.12]) with SMTP ID DSNKTMbd2uXANkMwVCZPL4ndmyDKCtrc3Ufa@postini.com; Tue, 26 Oct 2010 06:55:44 PDT Received: from milmhbs0.lsil.com (mhbs.lsil.com [147.145.1.30]) by mail0.lsil.com (8.12.11/8.12.11) with ESMTP id o9QDtagU013183; Tue, 26 Oct 2010 06:55:37 -0700 (PDT) Received: from inbexch01.lsi.com (inbexch01.lsi.com [135.36.98.37]) by milmhbs0.lsil.com (8.12.11/8.12.11) with ESMTP id o9QDtbv3006166; Tue, 26 Oct 2010 06:55:38 -0700 Received: from inbmail01.lsi.com ([135.36.98.64]) by inbexch01.lsi.com ([135.36.98.37]) with mapi; Tue, 26 Oct 2010 19:25:35 +0530 From: "Chauhan, Vijay" To: James Bottomley , device-mapper development Date: Tue, 26 Oct 2010 19:23:11 +0530 Thread-Topic: [RESUBMIT][Patch] scsi_dh_rdac: retry IO for 06/3f/03 in rdac_check_sense fn Thread-Index: Act1FSDBRtBlgoSqR0m3+2AAIhw8wQ== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.11 X-Scanned-By: MIMEDefang 2.39 X-RedHat-Spam-Score: -2.301 (RCVD_IN_DNSWL_MED,SPF_PASS) X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id o9QDu2Wx003215 X-loop: dm-devel@redhat.com Cc: "linux-scsi@vger.kernel.org" Subject: [dm-devel] [RESUBMIT][Patch] scsi_dh_rdac: retry IO for 06/3f/03 in rdac_check_sense fn X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 26 Oct 2010 13:58:51 +0000 (UTC) diff -uprN linux-2.6.35-rc6-orig/drivers/scsi/device_handler/scsi_dh_rdac.c linux-2.6.35-rc6/drivers/scsi/device_handler/scsi_dh_rdac.c --- linux-2.6.35-rc6-orig/drivers/scsi/device_handler/scsi_dh_rdac.c 2010-07-22 15:13:38.000000000 -0400 +++ linux-2.6.35-rc6/drivers/scsi/device_handler/scsi_dh_rdac.c 2010-07-27 12:13:58.000000000 -0400 @@ -738,6 +738,11 @@ static int rdac_check_sense(struct scsi_ * Quiescence in progress , just retry. */ return ADD_TO_MLQUEUE; + if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x03) + /* + * INQUIRY DATA has changed, retry again. + */ + return ADD_TO_MLQUEUE; break; } /* success just means we do not care what scsi-ml does */