Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756168AbZCZIMe (ORCPT ); Thu, 26 Mar 2009 04:12:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754001AbZCZIMP (ORCPT ); Thu, 26 Mar 2009 04:12:15 -0400 Received: from gw-ca.panasas.com ([209.116.51.66]:29843 "EHLO laguna.int.panasas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751169AbZCZIMN (ORCPT ); Thu, 26 Mar 2009 04:12:13 -0400 Message-ID: <49CB387A.3000006@panasas.com> Date: Thu, 26 Mar 2009 10:10:34 +0200 From: Boaz Harrosh User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090315 Remi/3.0-0.b2.fc10.remi Thunderbird/3.0b2 MIME-Version: 1.0 To: Tejun Heo CC: bzolnier@gmail.com, linux-kernel@vger.kernel.org, axboe@kernel.dk, linux-ide@vger.kernel.org Subject: Re: [PATCH 03/14] block: implement blk_rq_map_kern_prealloc() References: <1237910776-10983-1-git-send-email-tj@kernel.org> <1237910776-10983-4-git-send-email-tj@kernel.org> <49CA4B4B.50408@panasas.com> <49CAE425.5050009@kernel.org> <49CB31DB.2040608@gmail.com> <49CB3765.4070406@panasas.com> In-Reply-To: <49CB3765.4070406@panasas.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 26 Mar 2009 08:12:10.0815 (UTC) FILETIME=[901704F0:01C9ADEA] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1194 Lines: 29 On 03/26/2009 10:05 AM, Boaz Harrosh wrote: > On 03/26/2009 09:42 AM, Tejun Heo wrote: >> The thing is that the prealloc variant should be allowed to be called >> from IRQ context and blk_queue_bounce() shouldn't be called. >> Hmmm... well, the caller is supposed to know what it's doing and maybe >> we can just add a comment that it shouldn't be called with buffers >> which might get bounced from IRQ context. >> > > Hmm that is a problem. I would suggest a flag or a check. My bios come > from VFS they need bouncing. > > Can you think of a solution? > > We could just call blk_queue_bounce(). IRQ callers need to make sure their > buffers don't need bouncing anyway, so there is no such bug right? If a programmer > gets it wrong he will get a BUG check that tells him that. > I just realized that in your original call you had the "force" flag, we can keep that flag for the blk_rq_set_bio(), or what ever we should name it. Thanks Boaz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/