From patchwork Tue Jan 5 18:39:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: babu moger X-Patchwork-Id: 71091 X-Patchwork-Delegate: agk@redhat.com Received: from mx01.util.phx2.redhat.com (mx1-phx2.redhat.com [209.132.183.26]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o05IhQ4V032428 for ; Tue, 5 Jan 2010 18:43:26 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx01.util.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o05Ie456003485; Tue, 5 Jan 2010 13:40:05 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o05Ie10a021294 for ; Tue, 5 Jan 2010 13:40:01 -0500 Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.6]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o05IdulR010879 for ; Tue, 5 Jan 2010 13:39:56 -0500 Received: from na3sys009aog103.obsmtp.com (na3sys009aog103.obsmtp.com [74.125.149.71]) by mx1.redhat.com (8.13.8/8.13.8) with SMTP id o05IdTt2012072 for ; Tue, 5 Jan 2010 13:39:29 -0500 Received: from source ([147.145.40.20]) by na3sys009aob103.postini.com ([74.125.148.12]) with SMTP ID DSNKS0OHYUL0ol50mHNWLR7XLikhONnvFYBP@postini.com; Tue, 05 Jan 2010 10:39:41 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 o05IdRtw029346; Tue, 5 Jan 2010 10:39:28 -0800 (PST) Received: from coshub01.lsi.com (coshub01.co.lsil.com [172.21.36.64]) by milmhbs0.lsil.com (8.12.11/8.12.11) with ESMTP id o05IdVAf015313; Tue, 5 Jan 2010 10:39:31 -0800 Received: from cosmail01.lsi.com ([172.21.36.24]) by coshub01.lsi.com ([172.21.36.64]) with mapi; Tue, 5 Jan 2010 11:39:27 -0700 From: "Moger, Babu" To: "dm-devel@redhat.com" , "linux-scsi@vger.kernel.org" Date: Tue, 5 Jan 2010 11:39:26 -0700 Thread-Topic: [PATCH] dm-mpath: Fixing unnecessary argument casting Thread-Index: AcqONmhgvmF2vju3QUmUerWUvHvJAQ== 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.21 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.6 X-Scanned-By: MIMEDefang 2.39 X-RedHat-Spam-Score: -3.385 (AWL,RCVD_IN_DNSWL_MED) X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id o05Ie10a021294 X-loop: dm-devel@redhat.com Cc: Chandra Seetharaman Subject: [dm-devel] [PATCH] dm-mpath: Fixing unnecessary argument casting 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 --- linux-2.6.33-rc2/drivers/md/dm-mpath.c.orig 2010-01-05 12:47:26.000000000 -0400 +++ linux-2.6.33-rc2/drivers/md/dm-mpath.c 2010-01-05 12:34:00.000000000 -0400 @@ -1128,8 +1128,7 @@ static int pg_init_limit_reached(struct static void pg_init_done(void *data, int errors) { - struct dm_path *path = data; - struct pgpath *pgpath = path_to_pgpath(path); + struct pgpath *pgpath = data; struct priority_group *pg = pgpath->pg; struct multipath *m = pg->m; unsigned long flags; @@ -1198,7 +1197,7 @@ static void activate_path(struct work_st container_of(work, struct pgpath, activate_path); scsi_dh_activate(bdev_get_queue(pgpath->path.dev->bdev), - pg_init_done, &pgpath->path); + pg_init_done, pgpath); } /*