Thank you for writing the patch. I will try it later. However, the bug is a regression caused by commit 296291cd ("mm: make sendfile(2) killable") to the upstream of Linux kernel. [1]https://github.com/torvalds/linux/commit/296291cd This produces infinite -EINTR loop in mm/filemap.c:generic_perform_write(). Perhaps it can also affect filesystems other than AUFS. So I think it's possible to keep current AUFS, and put a patch to Linux kernel. I would like to hear your opinion. I also opened Linux kernel Bugzilla: [2]https://bugzilla.kernel.org/show_bug.cgi?id=109971
2015-12-25 14:39 GMT+09:00 <[3]sf...@users.sourceforge.net>: > > I'll continue to find the source of this EINTR loop. > > Maybe this is a bug of Linux kernel itself (kernel/pid_namespace.c?) rather > > than AUFS, but I'm still not sure. > > Or aufs should support the case of PF_EXITING flag set in > current->flags... Here is my current and UNTESTED solution. When you get boaring during holidays, I'd suggest you to try this patch and enjoy debugging. J. R. Okajima References 1. https://github.com/torvalds/linux/commit/296291cd 2. https://bugzilla.kernel.org/show_bug.cgi?id=109971 3. mailto:sf...@users.sourceforge.net
------------------------------------------------------------------------------