From patchwork Fri Apr 8 19:04:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: babu moger X-Patchwork-Id: 695411 Received: from mx3-phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p38J5o9g003911 for ; Fri, 8 Apr 2011 19:06:11 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p38J43ru009445; Fri, 8 Apr 2011 15:04:04 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p38J3csC003759 for ; Fri, 8 Apr 2011 15:03:38 -0400 Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.17]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p38J3X9T021909 for ; Fri, 8 Apr 2011 15:03:33 -0400 Received: from na3sys009aog110.obsmtp.com (na3sys009aog110.obsmtp.com [74.125.149.203]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p38J3TuY007053 for ; Fri, 8 Apr 2011 15:03:29 -0400 Received: from cosedge01.lsi.com ([192.19.220.66]) (using TLSv1) by na3sys009aob110.postini.com ([74.125.148.12]) with SMTP ID DSNKTZ9cAUrFLHufXR6q7wCucPw6zQEKzXVu@postini.com; Fri, 08 Apr 2011 12:03:29 PDT Received: from coshub01.lsi.com (135.142.2.64) by COSEDGE01.lsi.com (192.19.220.66) with Microsoft SMTP Server (TLS) id 8.3.137.0; Fri, 8 Apr 2011 13:02:36 -0600 Received: from cosmail01.lsi.com ([172.21.36.24]) by coshub01.lsi.com ([135.142.2.64]) with mapi; Fri, 8 Apr 2011 13:04:50 -0600 From: "Moger, Babu" To: device-mapper development Date: Fri, 8 Apr 2011 13:04:45 -0600 Thread-Topic: [PATCH 1/2] multipath-tools: report PATH_UP for both path groups in rdac if io-shipping is enabled Thread-Index: Acv2H9LhjE7ae1OwSzu22Z2e6W44tw== 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-RedHat-Spam-Score: -2.3 (RCVD_IN_DNSWL_MED) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-Scanned-By: MIMEDefang 2.68 on 10.5.110.17 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id p38J3csC003759 X-loop: dm-devel@redhat.com Cc: "Krishnasamy, Somasundaram" , "Stankey, Robert" Subject: [dm-devel] [PATCH 1/2] multipath-tools: report PATH_UP for both path groups in rdac if io-shipping is enabled 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 08 Apr 2011 19:06:12 +0000 (UTC) This patch reports PATH_UP for both the path groups if the RDAC storage is configured with i/o shipping. Signed-off-by: Babu Moger Reviewed-by: Yanling Qi Reviewed-by: Somasundaram Krishnasamy --- -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel --- multipath-tools/libmultipath/checkers/rdac.c.orig 2011-04-01 16:45:38.000000000 -0500 +++ multipath-tools/libmultipath/checkers/rdac.c 2011-04-01 16:58:43.000000000 -0500 @@ -218,7 +218,11 @@ libcheck_check (struct checker * c) goto done; } - ret = ((inq.avtcvp & 0x1) ? PATH_UP : PATH_GHOST); + /* If owner set or ioship mode is enabled return PATH_UP always */ + if ((inq.avtcvp & 0x1) || ((inq.avtcvp >> 5) & 0x1)) + ret = PATH_UP; + else + ret = PATH_GHOST; done: switch (ret) {