Re: [PATCH] NFSD: fix wrong mnt_writer count in rename (MMOTM 2007-11-10-19-05)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Erez Zadok <ezk@...>
Cc: <bfields@...>, Andrew Morton <akpm@...>, <linux-kernel@...>, <nfs@...>
Date: Tuesday, November 13, 2007 - 1:39 pm

On Mon, 2007-11-12 at 20:15 -0500, Erez Zadok wrote:

I do see some write-ish things happening inside of the nfsd_sync_dir()
call chain: the fsync() and filemap_fdatawrite().

The danger here is that the moment you mnt_drop_write(), the filesystem
is mounted r/o by someone else, then those fsync() writes occur when
everyone thinks it is r/o.  So, I think your fix is the most
conservative, and the most correct.


Otherwise, looks good to me.  Thanks.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>

-- Dave

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] NFSD: fix wrong mnt_writer count in rename (MMOT..., Dave Hansen, (Tue Nov 13, 1:39 pm)