From: Jan Kara Subject: Re: [Lsf] IO less throttling and cgroup aware writeback (Was: Re: Preliminary Agenda and Activities for LSF) Date: Wed, 20 Apr 2011 21:16:50 +0200 Message-ID: <20110420191650.GF4991@quack.suse.cz> References: <20110419141717.GA26482@localhost> <20110419143423.GC31712@redhat.com> <20110419144832.GB9556@quack.suse.cz> <20110419151111.GE31712@redhat.com> <20110419152239.GA30715@localhost> <20110419153106.GF31712@redhat.com> <20110419165838.GA2134@localhost> <20110419170543.GK31712@redhat.com> <20110420011638.GA4421@localhost> <20110420184433.GH29872@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Wu Fengguang , Jan Kara , James Bottomley , "lsf@lists.linux-foundation.org" , "linux-fsdevel@vger.kernel.org" , Dave Chinner To: Vivek Goyal Return-path: Received: from cantor.suse.de ([195.135.220.2]:44836 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751984Ab1DTTQx (ORCPT ); Wed, 20 Apr 2011 15:16:53 -0400 Content-Disposition: inline In-Reply-To: <20110420184433.GH29872@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed 20-04-11 14:44:33, Vivek Goyal wrote: > Ok, will look into it. That will probably take care of READS. What > about WRITES and meta data. Is it safe to assume that any meta data > write will come in some jounalling thread context and not in user > process context? For ext3/4 it is a journal thread context or flusher thread context because after metadata is written to journal by journal thread, they are left as dirty buffers in page cache of the block device. So flusher thread can come and write them - and these writes will hold buffer lock and thus also block any manipulation with the metadata. I don't know about other filesystems. Honza -- Jan Kara SUSE Labs, CR