From patchwork Mon Aug 24 23:29:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: babu moger X-Patchwork-Id: 43677 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 n7ONU0eR009378 for ; Mon, 24 Aug 2009 23:30:00 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 A8E246196D2; Mon, 24 Aug 2009 19:29:59 -0400 (EDT) Received: from int-mx05.intmail.prod.int.phx2.redhat.com (nat-pool.util.phx.redhat.com [10.8.5.200]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id n7ONTwv1020610 for ; Mon, 24 Aug 2009 19:29:58 -0400 Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.12]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7ONTwOw005958 for ; Mon, 24 Aug 2009 19:29:58 -0400 Received: from exprod7og124.obsmtp.com (exprod7og124.obsmtp.com [64.18.2.26]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7ONTiX9018609 for ; Mon, 24 Aug 2009 19:29:44 -0400 Received: from source ([147.145.40.20]) by exprod7ob124.postini.com ([64.18.6.12]) with SMTP ID DSNKSpMiZGo7mPUHvJxYmYcLsJh9pNqEnxEi@postini.com; Mon, 24 Aug 2009 16:29: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 n7ONTdxX023560; Mon, 24 Aug 2009 16:29:39 -0700 (PDT) Received: from coscas01.lsi.com (coscas01.co.lsil.com [172.21.36.60]) by milmhbs0.lsil.com (8.12.11/8.12.11) with ESMTP id n7ONTetT027734; Mon, 24 Aug 2009 16:29:40 -0700 Received: from cosmail01.lsi.com ([172.21.36.24]) by coscas01.lsi.com ([172.21.36.60]) with mapi; Mon, 24 Aug 2009 17:29:38 -0600 From: "Moger, Babu" To: Linux SCSI Mailing list Date: Mon, 24 Aug 2009 17:29:36 -0600 Thread-Topic: [PATCH] scsi_dh_rdac: Fix for returning correct mode select return info Thread-Index: AcolEr4lcwePOsJnQFqm7ALKEIVNEA== 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.18 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.12 X-Scanned-By: MIMEDefang 2.39 X-RedHat-Spam-Score: -4 (RCVD_IN_DNSWL_MED) X-MIME-Autoconverted: from base64 to 8bit by listman.util.phx.redhat.com id n7ONTwv1020610 X-loop: dm-devel@redhat.com Cc: "Dachepalli, Sudhir" , device-mapper development , "Chauhan, Vijay" , "Stankey, Robert" Subject: [dm-devel] [PATCH] scsi_dh_rdac: Fix for returning correct mode select return info 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 This patch fixes the problem with mode_select_handle_sense when retuning mode select completion status. I have removed the default initialization of return code to SCSI_DH_OK. Now it is initialized to SCSI_DH_IO. Signed-off-by: Babu Moger --- -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel --- linux-2.6.31-rc5/drivers/scsi/device_handler/scsi_dh_rdac.c.orig 2009-08-22 06:20:45.000000000 -0500 +++ linux-2.6.31-rc5/drivers/scsi/device_handler/scsi_dh_rdac.c 2009-08-22 06:18:36.000000000 -0500 @@ -455,8 +455,6 @@ static int mode_select_handle_sense(stru if (!ret) goto done; - err = SCSI_DH_OK; - switch (sense_hdr.sense_key) { case NO_SENSE: case ABORTED_COMMAND: