From patchwork Mon Aug 2 07:37:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chauhan, Vijay" X-Patchwork-Id: 116416 Received: from mx01.colomx.prod.int.phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o727ixfN016496 for ; Mon, 2 Aug 2010 07:45:38 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx01.colomx.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o727gUgG010250; Mon, 2 Aug 2010 03:42:34 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o727gU5E030226 for ; Mon, 2 Aug 2010 03:42:30 -0400 Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.9]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o727gPV4028405 for ; Mon, 2 Aug 2010 03:42:25 -0400 Received: from na3sys009aog111.obsmtp.com (na3sys009aog111.obsmtp.com [74.125.149.205]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o727gDxj020643 for ; Mon, 2 Aug 2010 03:42:13 -0400 Received: from source ([147.145.40.20]) by na3sys009aob111.postini.com ([74.125.148.12]) with SMTP ID DSNKTFZ206cRZvxNGxS8hTrS8x51f2I7VAh+@postini.com; Mon, 02 Aug 2010 00:42:16 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 o727g3gx018065; Mon, 2 Aug 2010 00:42:03 -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 o727g7QB025405; Mon, 2 Aug 2010 00:42:07 -0700 Received: from inbmail02.lsi.com ([135.36.98.34]) by inbexch01.lsi.com ([135.36.98.37]) with mapi; Mon, 2 Aug 2010 13:12:02 +0530 From: "Chauhan, Vijay" To: Chandra Seetharaman , device-mapper development Date: Mon, 2 Aug 2010 13:07:25 +0530 Thread-Topic: [Patch] scsi_dh_rdac: retry IO for 06/3f/03 in rdac_check_sense fn Thread-Index: AcsyFY1UeplSIPaERWOAqFMZLCA+Qw== Message-ID: <1C9608B8A4CD534FB19C7C7543CBB24902991CCA21@inbmail02.lsi.com> 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.16 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.9 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 o727gU5E030226 X-loop: dm-devel@redhat.com Cc: "linux-scsi@vger.kernel.org" Subject: [dm-devel] [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 (demeter.kernel.org [140.211.167.41]); Mon, 02 Aug 2010 07:45:39 +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 */