From: Nikita Danilov Subject: Re: Pagewriteback clarification Date: Wed, 28 Sep 2005 13:17:52 +0400 Message-ID: <17210.24512.240624.67693@gargle.gargle.HOWL> References: <20050928015738.GA12461@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from H190.C26.B96.tor.eicat.ca ([66.96.26.190]:160 "EHLO moraine.clusterfs.com") by vger.kernel.org with ESMTP id S1751213AbVI1Kvi (ORCPT ); Wed, 28 Sep 2005 06:51:38 -0400 To: Sukadev Bhattiprolu In-Reply-To: <20050928015738.GA12461@us.ibm.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Sukadev Bhattiprolu writes: > Hi, > > I have a couple of questions regarding PageWriteback flag and its > relationship to locked buffers and in-progress I/O in progress. > I would appreciate any input/pointers on this. > > 1. Based on documentation in Documentation/filesystems/filesystems Cannot find such file. Are you talking about Documentation/filesystems/Locking? > (LK 2.6.13), .writepage() can be called even if I/O is in progress > for the page. And if an I/O is in progress, PageWriteback is TRUE No, callers of ->writepage() should assure that - page is locked, and - writeback bit is clear on that page. Which means that no IO is going on against this page. When Documentation/filesystems/Locking talks about "currently-in-progress I/O" it means any IO going to or fro the device, and "blocking against in-progress I/O" means blocking due to device queue congestion. Nikita.