From: Al Viro Date: Wed, 22 Jun 2011 22:53:18 +0000 (-0400) Subject: fix mknod() on nfs4 (hopefully) X-Git-Tag: v3.1-rc1~282^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7c85868fcacc331dd3454a4f08f006d7942521f;p=pandora-kernel.git fix mknod() on nfs4 (hopefully) a) check the right flags in ->create() (LOOKUP_OPEN, not LOOKUP_CREATE) b) default (!LOOKUP_OPEN) open_flags is O_CREAT|O_EXCL|FMODE_READ, not 0 c) lookup_instantiate_filp() should be done only with LOOKUP_OPEN; otherwise we need to issue CLOSE, lest we leak stateid on server. Signed-off-by: Al Viro --- Reading git-diff-tree failed