From patchwork Mon Jan 26 15:59:37 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chauhan, Vijay" X-Patchwork-Id: 3998 Received: from hormel.redhat.com (hormel1.redhat.com [209.132.177.33]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0QG05fa032397 for ; Mon, 26 Jan 2009 16:00:05 GMT Received: from listman.util.phx.redhat.com (listman.util.phx.redhat.com [10.8.4.110]) by hormel.redhat.com (Postfix) with ESMTP id 9CD6C8E01F6; Mon, 26 Jan 2009 11:00:04 -0500 (EST) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id n0QG01Hp005908 for ; Mon, 26 Jan 2009 11:00:02 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n0QG03WC026004 for ; Mon, 26 Jan 2009 11:00:03 -0500 Received: from exprod7og107.obsmtp.com (exprod7og107.obsmtp.com [64.18.2.167]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n0QFxhEq026939 for ; Mon, 26 Jan 2009 10:59:44 -0500 Received: from source ([147.145.40.20]) by exprod7ob107.postini.com ([64.18.6.12]) with SMTP ID DSNKSX3d7aTpUv0g3s/HkR6V+H7LLoMd6csj@postini.com; Mon, 26 Jan 2009 07:59:45 PST 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 n0QFxeCL009481; Mon, 26 Jan 2009 07:59:40 -0800 (PST) Received: from inbmail01.lsi.com (inbmail01.in.lsil.com [172.28.140.213]) by milmhbs0.lsil.com (8.12.11/8.12.11) with ESMTP id n0QFxfRH025440; Mon, 26 Jan 2009 07:59:42 -0800 Received: from inbmail01.lsi.com ([172.28.140.213]) by inbmail01.lsi.com ([172.28.140.213]) with mapi; Mon, 26 Jan 2009 21:29:38 +0530 From: "Chauhan, Vijay" To: "linux-scsi@vger.kernel.org" Date: Mon, 26 Jan 2009 21:29:37 +0530 Thread-Topic: [PATCH]scsi_dh_rdac: Retry for Quiescence in Progress in rdac device handler Thread-Index: Acl/zxaVSStPMwfQRWa9wKQMkm6PEA== Message-ID: <0D1E8821739E724A86F4D16902CE275C13FF9AFFD6@inbmail01.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.58 on 172.16.52.254 X-Scanned-By: MIMEDefang 2.63 on 172.16.48.31 X-Scanned-By: MIMEDefang 2.39 X-RedHat-Spam-Score: -4 X-MIME-Autoconverted: from quoted-printable to 8bit by listman.util.phx.redhat.com id n0QG01Hp005908 X-loop: dm-devel@redhat.com Cc: "dm-devel@redhat.com" Subject: [dm-devel] [PATCH]scsi_dh_rdac: Retry for Quiescence in Progress in rdac device handler X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.5 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 During device discovery read capacity fails with 0x068b02 and sets the device size to 0. As a reason any I/O submitted to this path gets killed at sd_prep_fn with BLKPREP_KILL. This patch is to retry for 0x068b02. Please apply. From: Vijay Chauhan This patch adds retry for Quiescence in Progress in rdac device handler. Signed-off-by: Vijay Chauhan Acked-by: Chandra Seetharaman --- -- -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel --- linux-2.6.29-rc2/drivers/scsi/device_handler/scsi_dh_rdac.c.orig 2009-01-26 20:46:05.000000000 +0530 +++ linux-2.6.29-rc2/drivers/scsi/device_handler/scsi_dh_rdac.c 2009-01-26 20:47:34.000000000 +0530 @@ -579,6 +579,11 @@ static int rdac_check_sense(struct scsi_ * Power On, Reset, or Bus Device Reset, just retry. */ return ADD_TO_MLQUEUE; + if (sense_hdr->asc == 0x8b && sense_hdr->ascq == 0x02) + /* + * Quiescence in progress , just retry. + */ + return ADD_TO_MLQUEUE; break; } /* success just means we do not care what scsi-ml does */