Re: WARN when unmounting a subvolume that is being synced

From: Tycho Andersen
Date: Wed Mar 14 2018 - 10:29:01 EST


On Wed, Mar 14, 2018 at 09:46:07AM +0200, Nikolay Borisov wrote:
>
>
> On 14.03.2018 05:10, Tycho Andersen wrote:
> > Hi all,
> >
> > I'm getting the WARN below. I think (?) what I'm doing when I get it
> > is that I'm unmounting a subvolume while it's being synced (concurrent
> > uses of the subvolume, at least, happy to look into it further if the
> > stack trace is not so useful). Anyway, I can fairly reliably reproduce
> > this on 4.16-rc4.
> >
> > Thoughts?
>
> Yeah, you've mounted the filesystem with flushoncommit. THe easiest
> thing would be to remount with that option ommitted i.e the default
> behavior. This is a well-known issue, unfortunately fixing it is a bit
> hairy and deadlock prone against fs freeze.

Excellent, thanks!

Tycho