From: Al Viro Date: Sun, 12 Jun 2011 20:01:21 +0000 (-0400) Subject: afs: fix sget() races, close leak on umount X-Git-Tag: v3.0-rc4~28^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dde194a64bb5c3fd05d965775dc92e8a4920a53a;p=pandora-kernel.git afs: fix sget() races, close leak on umount * set ->s_fs_info in set() callback passed to sget() * allocate the thing and set it up enough for afs_test_super() before making it visible * have it freed in ->kill_sb() (current tree simply leaks it) * have ->put_super() leave ->s_fs_info->volume alone; it's too early for dropping it; do that from ->kill_sb() after having called kill_anon_super(). Signed-off-by: Al Viro --- Reading git-diff-tree failed