[lkml]   [2005]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Why is one sync() not enough?
Nico Schottelius <> 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?
> > 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?


> 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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-06-15 21:44    [W:0.068 / U:1.944 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site