Comment 19 for bug 1873074

Revision history for this message
J. R. Okajima (hooanon05) wrote : Re: [Bug 1873074] Re: kernel panic hit by kube-proxy iptables-save/restore caused by aufs

Mauricio Faria de Oliveira:
> I'm not an aufs expert, but I think it's still wrong for aufs to
> mess with the file mode of an already open file in the underlying
> filesystem, and trying to remedy the failure as a result of that
> by messing with the readcount again, under the covers.

Aufs is an ordinaray filesystem which is a callee of VFS, at the same
time aufs is a caller of VFS for the branch/layer filesystems. So aufs
handles i_readcount on behalf of VFS.

> Maybe another approach is to close the file if opened in RW mode,
> and reopen in RO mode? so that the VFS continues to take care of
> the i_readcount value, and aufs doesn't have to play tricks here.

Re-open cannot be an option. It will destroy the file lock, file
position or any other file internal parameters.

J. R. Okajima