Re: mnt_count accounting broken

From: Alexander Viro (viro@math.psu.edu)
Date: Fri May 05 2000 - 10:17:29 EST


On Fri, 5 May 2000, Tigran Aivazian wrote:

> Hi,
>
> What is the point of the first check if(mnt->mnt_count > 2) in

You don't want to call shrink_dcache_sb() without a good reason. This
check stops most of the attempts to umount a busy fs.

> do_umount()? It is re-checked later on after shrink_dcache_sb/fsync_dev
so
> why checking in the beginning as well? I do not see why it is needed and
> things work much better without it...

Really? That's funny... You mean that something changes if you remove it?
Then we are *deep* in it.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:17 EST