All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francis Moreau <francis.moro@gmail.com>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: Question regarding concurrent accesses through block device and fs
Date: Sun, 01 Mar 2009 15:42:55 +0100	[thread overview]
Message-ID: <m2ab85nw28.fsf@gmail.com> (raw)
In-Reply-To: 200902231458.32911.nickpiggin@yahoo.com.au


[ Sorry for being long to answer but I was off, I'm slow and there are
  a lot of complex code to dig out ! ]

Nick Piggin <nickpiggin@yahoo.com.au> writes:

> On Saturday 21 February 2009 01:10:24 Francis Moreau wrote:

[...]

>>   - looking at unmap_underlying_metadata(), there's no code to deal with
>>     meta data buffers. It gets the buffer and unmap it whatever the type of
>>     data it contains.
>
> That's why I say it only really works for buffer cache used by the same
> filesystem that is now known to be unused.
>

hum, I still don't know what you mean by this, sorry to be slow.


[...]

>> What am I missing ?
>
> That we might complete the write of the new buffer before the
> old buffer is finished writing out?

Ah yes actually I realize that I don't know where and when the inode
blocks are effectively written to the disk !

It seems that write_inode(), called after data are commited to the
disk, only marks the inode buffers as dirty but it performs no IO (at
least it looks so for ext2 when its 'do_sync' parameter is 0 which is
the case when this method is called by write_inode()).

Could you enlight me one more time ?

Thanks
-- 
Francis

  reply	other threads:[~2009-03-01 14:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-13 20:25 Question regarding concurrent accesses through block device and fs Francis Moreau
2009-02-16  3:00 ` Niu_Yawei
2009-02-16  9:03   ` Francis Moreau
2009-02-19 11:07 ` Francis Moreau
2009-02-19 13:44   ` Nick Piggin
2009-02-20 14:10     ` Francis Moreau
2009-02-23  3:58       ` Nick Piggin
2009-03-01 14:42         ` Francis Moreau [this message]
2009-03-01 15:32           ` Nick Piggin
2009-03-01 21:07             ` Francis Moreau
2009-03-02  7:11               ` Nick Piggin
2009-03-02 13:30                 ` Francis Moreau
2009-03-03  3:52                   ` Nick Piggin
2009-03-12  8:05                     ` Francis Moreau
2009-03-12  8:22                       ` Nick Piggin
2009-03-12  9:00                         ` Francis Moreau
2009-03-12  9:12                           ` Nick Piggin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2ab85nw28.fsf@gmail.com \
    --to=francis.moro@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.