sfjro/aufs3-linux — pull request #1 by thomasco (2014-02-28 08:35:48+00:00)
Title: Fix unmount to properly free anonymous block devices

After doing about 2^20 aufs mount/unmount cycles, further mounts of any none type filesystem (e.g., aufs, tmpfs, etc) become impossible with an error reading "mount table full" (EMFILE). The root cause seems to be that aufs_kill_sb calls generic_shutdown_super instead of kill_anon_super, skipping free_anon_bdev, leaking the dummy device that had been mounted, and causing the dummy device table (which allows 2^20 entries) to fill up.

This behavior can be reproduced using [this program](https://gist.github.com/EvanKrall/9267361).