lkml.org 
[lkml]   [2005]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Why is one sync() not enough?
Nico Schottelius <nico-kernel@schottelius.org> wrote:
>
> Hello Andrew,
>
> you wrote:
> > What filesystem?
>
> jfs

It would be useful to test with a different filesystem (ext3 mounted with
data=writeback is close to equivalent). That'll help us identify the bug.

> > What kernel version?
>
> 2.6.11.11
>
> > Any unusual bind mounts, loopback
> > mounts, etc? There must be something there...>
>
> Yes, dm-crypt-mounted-jfs.

Again, if you can temporarily eliminate dm-crypt as well it will help
narrow it down.

> So if I understood everything correctly, a simple umount() without
> a sync() before should be enough?

Yes.

> If so, I'll try that, I am happy about every less function call
> I need to do.

OK. sync()+umount() shouldn't take any longer than a bare umount() (which
has to do a sync too). Unless you have multiple disks, in which case
there's no point in syncing the disks which aren't being umounted. But
then, I have a feeling that standard util-linux umount(8) does a global
sync anyway.

-
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/

\
 
 \ /
  Last update: 2005-06-15 21:44    [W:0.048 / U:5.244 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site