[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170617000157.GQ31671@ZenIV.linux.org.uk>
Date: Sat, 17 Jun 2017 01:01:57 +0100
From: Al Viro <viro@...IV.linux.org.uk>
To: NeilBrown <neilb@...e.com>
Cc: Jens Axboe <axboe@...com>, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] loop: use filp_close() rather than fput()
On Fri, Jun 16, 2017 at 03:02:09PM +1000, NeilBrown wrote:
> When a loop device is being shutdown the backing file is
> closed with fput(). This is different from how close(2)
> closes files - it uses filp_close().
>
> The difference is important for filesystems which provide a ->flush
> file operation such as NFS. NFS assumes a flush will always
> be called on last close, and gets confused otherwise.
Huh? You do realize that mmap() + close() + modify + msync() + munmap()
will have IO done *after* the last flush, right?
Powered by blists - more mailing lists