]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] knfsd: nfs4: hold filp while reading or writing
authorNeilBrown <neilb@cse.unsw.edu.au>
Fri, 24 Jun 2005 05:03:13 +0000 (22:03 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 24 Jun 2005 07:06:30 +0000 (00:06 -0700)
commita80b269cf47a598bb0567dcc96e8b8ac6b64c358
treeb6f41e8c458756da5ccf82e075c76b1be329959b
parent5623ef962bf2c3612beaa6afb8e7dac5552889df
[PATCH] knfsd: nfs4: hold filp while reading or writing

We're trying to read and write from a struct file that we may not hold a
reference to any more (since a close could be processed as soon as we drop the
state lock).

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4proc.c