Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753934Ab2BTRBf (ORCPT ); Mon, 20 Feb 2012 12:01:35 -0500 Received: from mail-pz0-f46.google.com ([209.85.210.46]:45818 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752824Ab2BTRBe (ORCPT ); Mon, 20 Feb 2012 12:01:34 -0500 Authentication-Results: mr.google.com; spf=pass (google.com: domain of htejun@gmail.com designates 10.68.239.170 as permitted sender) smtp.mail=htejun@gmail.com; dkim=pass header.i=htejun@gmail.com Date: Mon, 20 Feb 2012 09:01:28 -0800 From: Tejun Heo To: Vivek Goyal Cc: Kent Overstreet , axboe@kernel.dk, ctalbott@google.com, rni@google.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/9] block: implement bio_associate_current() Message-ID: <20120220170128.GB7836@mtj.dyndns.org> References: <1329431878-28300-1-git-send-email-tj@kernel.org> <1329431878-28300-8-git-send-email-tj@kernel.org> <20120217011907.GA15073@google.com> <20120217221406.GJ29414@google.com> <20120217223420.GJ26620@redhat.com> <20120217224103.GN29414@google.com> <20120217225125.GK26620@redhat.com> <20120217225735.GP29414@google.com> <20120220143622.GB10342@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120220143622.GB10342@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 651 Lines: 16 On Mon, Feb 20, 2012 at 09:36:22AM -0500, Vivek Goyal wrote: > In copy_io(), we don't share the io_context if "current" does not have > task->io_context set. Does that mean if even if I specify CLONE_IO, two > threads might not share io context depending on when clone() happened? Or > I am reading the code wrong. Yeah, AFAICS, if the cloning task hasn't issued IO before, CLONE_IO is ignored. -- tejun -- 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/