fs/9p: Always ask new inode in lookup for cache mode disabled
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 16 Aug 2011 16:49:28 +0000 (22:19 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:22 +0000 (11:40 -0700)
commit8bdb14f9c33bb0ad8b37a9465c968ccce4ecda3b
tree941252c60ac4ea9efd9fdbbf0f2cdee0eeb23878
parent8926487ad88b00a9b6677f866df787dea7b3471b
fs/9p: Always ask new inode in lookup for cache mode disabled

commit 73f507171cfa407b19f254aef95cbb058c8180cf upstream.

This make sure we don't end up reusing the unlinked inode object.
The ideal way is to use inode i_generation. But i_generation is
not available in userspace always.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/9p/vfs_inode.c