NFSv4: set the delegation in nfs4_opendata_to_nfs4_state
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 3 Jul 2007 20:42:45 +0000 (16:42 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Jul 2007 03:40:40 +0000 (23:40 -0400)
commit549d6ed5e85003370fe858e70864a71882491d28
treea5094cbce64f07560f0e3511279260e40c0ae669
parent1c816efa245111c52858fbe55d99474f3c149dd3
NFSv4: set the delegation in nfs4_opendata_to_nfs4_state

This ensures that nfs4_open_release() and nfs4_open_confirm_release()
can now handle an eventual delegation that was returned with out open.
As such, it fixes a delegation "leak" when the user breaks out of an open
call.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c