From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932868Ab2J2Qpj (ORCPT ); Mon, 29 Oct 2012 12:45:39 -0400 Received: from merlin.infradead.org ([205.233.59.134]:55721 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756804Ab2J2Qpi convert rfc822-to-8bit (ORCPT ); Mon, 29 Oct 2012 12:45:38 -0400 Message-ID: <1351529115.24721.40.camel@twins> Subject: Re: [PATCH 2/2] dm: stay in blk_queue_bypass until queue becomes initialized From: Peter Zijlstra To: Vivek Goyal Cc: "Jun'ichi Nomura" , "linux-kernel@vger.kernel.org" , device-mapper development , Tejun Heo , Jens Axboe , Alasdair G Kergon , "Paul E. McKenney" Date: Mon, 29 Oct 2012 17:45:15 +0100 In-Reply-To: <20121029163845.GB7709@redhat.com> References: <50890937.7010809@ce.jp.nec.com> <20121026202105.GF24687@redhat.com> <508E572C.6000707@ce.jp.nec.com> <20121029163845.GB7709@redhat.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2012-10-29 at 12:38 -0400, Vivek Goyal wrote: > Ok, so the question is what's wrong with calling synchronize_rcu() inside > a mutex with CONFIG_PREEMPT=y. I don't know. Ccing paul mckenney and > peterz. int blkcg_activate_policy(struct request_queue *q, { ... preloaded = !radix_tree_preload(GFP_KERNEL); blk_queue_bypass_start(q); where: int radix_tree_preload(gfp_t gfp_mask) { struct radix_tree_preload *rtp; struct radix_tree_node *node; int ret = -ENOMEM; preempt_disable(); Seems obvious why it explodes..