Re: [PATCH 05/11] fuse: Trust kernel i_mtime only -v2
From: Maxim Patlasov
Date: Mon Jan 20 2014 - 06:33:53 EST
On 01/06/2014 08:22 PM, Miklos Szeredi wrote:
On Thu, Dec 26, 2013 at 07:41:41PM +0400, Maxim Patlasov wrote:
fuse_release_common() doesn't have i_mutex. It's probably safe to acquire it,
No. Because the whole operation is protected by i_mutex (see
+Doing the test and the clear separately opens a huge race window when i_mtime
+ if (!err)
+ clear_bit(FUSE_I_MTIME_DIRTY, &fi->state);
modifications are bound to get lost.
but is that really needed?
No, that's not needed, I think. Because by the time of calling
fuse_release(), file->f_count is already zero and no userspace activity
is possible on the file.
Are you OK about -v3 version of the patch (sent 12/26/2013)?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/