Re: [PATCH 28/30] r/o bind mounts: track numbers of writers to mounts

2008-02-20 Thread Dave Hansen
On Mon, 2008-02-18 at 17:10 +0100, Miklos Szeredi wrote: > > > + /* > > + * We don't have to hold all of the locks at the > > + * same time here because we know that we're the > > + * last reference to mnt and that no new writers > > + * can come in. > > + */ > > +

Re: [PATCH 28/30] r/o bind mounts: track numbers of writers to mounts

2008-02-20 Thread Dave Hansen
On Mon, 2008-02-18 at 17:10 +0100, Miklos Szeredi wrote: + /* + * We don't have to hold all of the locks at the + * same time here because we know that we're the + * last reference to mnt and that no new writers + * can come in. + */ +

Re: [PATCH 28/30] r/o bind mounts: track numbers of writers to mounts

2008-02-18 Thread Miklos Szeredi
> @@ -327,7 +514,30 @@ static struct vfsmount *clone_mnt(struct > > static inline void __mntput(struct vfsmount *mnt) > { > + int cpu; > struct super_block *sb = mnt->mnt_sb; > + /* > + * We don't have to hold all of the locks at the > + * same time here because we know

Re: [PATCH 28/30] r/o bind mounts: track numbers of writers to mounts

2008-02-18 Thread Miklos Szeredi
@@ -327,7 +514,30 @@ static struct vfsmount *clone_mnt(struct static inline void __mntput(struct vfsmount *mnt) { + int cpu; struct super_block *sb = mnt-mnt_sb; + /* + * We don't have to hold all of the locks at the + * same time here because we know that

[PATCH 28/30] r/o bind mounts: track numbers of writers to mounts

2008-02-15 Thread Dave Hansen
This is the real meat of the entire series. It actually implements the tracking of the number of writers to a mount. However, it causes scalability problems because there can be hundreds of cpus doing open()/close() on files on the same mnt at the same time. Even an atomic_t in the mnt has

[PATCH 28/30] r/o bind mounts: track numbers of writers to mounts

2008-02-15 Thread Dave Hansen
This is the real meat of the entire series. It actually implements the tracking of the number of writers to a mount. However, it causes scalability problems because there can be hundreds of cpus doing open()/close() on files on the same mnt at the same time. Even an atomic_t in the mnt has

[RFC][PATCH 28/30] r/o bind mounts: track numbers of writers to mounts

2008-02-08 Thread Dave Hansen
This is the real meat of the entire series. It actually implements the tracking of the number of writers to a mount. However, it causes scalability problems because there can be hundreds of cpus doing open()/close() on files on the same mnt at the same time. Even an atomic_t in the mnt has

[RFC][PATCH 28/30] r/o bind mounts: track numbers of writers to mounts

2008-02-08 Thread Dave Hansen
This is the real meat of the entire series. It actually implements the tracking of the number of writers to a mount. However, it causes scalability problems because there can be hundreds of cpus doing open()/close() on files on the same mnt at the same time. Even an atomic_t in the mnt has