From patchwork Fri May 14 08:06:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiyoshi Ueda X-Patchwork-Id: 99559 Received: from mx01.colomx.prod.int.phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4E8C5xW002254 for ; Fri, 14 May 2010 08:12:41 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 o4E89oXp020245; Fri, 14 May 2010 04:09:51 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4E89nYV032262 for ; Fri, 14 May 2010 04:09:49 -0400 Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.5]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4E89h0H019036; Fri, 14 May 2010 04:09:43 -0400 Received: from tyo202.gate.nec.co.jp (TYO202.gate.nec.co.jp [202.32.8.206]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4E89XmM012035; Fri, 14 May 2010 04:09:34 -0400 Received: from mailgate4.nec.co.jp ([10.7.69.184]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id o4E89Tg5021618; Fri, 14 May 2010 17:09:29 +0900 (JST) Received: (from root@localhost) by mailgate4.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id o4E89Te10156; Fri, 14 May 2010 17:09:29 +0900 (JST) Received: from mail03.kamome.nec.co.jp (mail03.kamome.nec.co.jp [10.25.43.7]) by mailsv3.nec.co.jp (8.13.8/8.13.4) with ESMTP id o4E89SOM012403; Fri, 14 May 2010 17:09:28 +0900 (JST) Received: from yonosuke.jp.nec.com ([10.26.220.15] [10.26.220.15]) by mail02.kamome.nec.co.jp with ESMTP id BT-MMP-2773086; Fri, 14 May 2010 17:07:01 +0900 Received: from elcondor.linux.bs1.fc.nec.co.jp ([10.34.125.230] [10.34.125.230]) by mail.jp.nec.com with ESMTP; Fri, 14 May 2010 17:06:57 +0900 Message-ID: <4BED049C.5040409@ct.jp.nec.com> Date: Fri, 14 May 2010 17:06:52 +0900 From: Kiyoshi Ueda User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: Mike Snitzer References: <1273532139-23043-1-git-send-email-snitzer@redhat.com> <1273532139-23043-2-git-send-email-snitzer@redhat.com> <4BE8DBB0.5060701@ct.jp.nec.com> <20100511131502.GA25211@redhat.com> <4BEA659F.9050206@ct.jp.nec.com> <20100513035750.GA25523@redhat.com> In-Reply-To: <20100513035750.GA25523@redhat.com> X-RedHat-Spam-Score: -0.002 (SPF_HELO_PASS,SPF_PASS) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.5 X-loop: dm-devel@redhat.com Cc: Nikanth Karthikesan , linux-kernel@vger.kernel.org, dm-devel@redhat.com, Alasdair Kergon , Jens Axboe , "Jun'ichi Nomura" , Vivek Goyal Subject: Re: [dm-devel] [RFC PATCH 2/2] dm: only initialize full request_queue for request-based device 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]); Fri, 14 May 2010 08:12:41 +0000 (UTC) Index: 2.6.34-rc7/drivers/md/dm.c =================================================================== --- 2.6.34-rc7.orig/drivers/md/dm.c +++ 2.6.34-rc7/drivers/md/dm.c @@ -2410,6 +2410,14 @@ struct dm_table *dm_swap_table(struct ma goto out; } + /* drop elevator when the device type is decided as bio-based */ + if (!md->map && dm_table_get_type(table) == DM_TYPE_BIO_BASED) { + elv_unregister_queue(md->queue); + elevator_exit(md->queue->elevator); + md->queue->request_fn = NULL; + md->queue->elevator = NULL; + } + map = __bind(md, table, &limits); out: