nfsd4: split lockstateid/openstateid release logic
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 11 Jan 2009 19:27:17 +0000 (14:27 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 18 Mar 2009 21:30:47 +0000 (17:30 -0400)
commit2283963f27fdd56b185e49a964c290130c7c95ab
treec1b54a9b233baa004e8a17662b6c3f08fdb523c4
parenta1e4ee22863d41a6fbb24310d7951836cb6dafe7
nfsd4: split lockstateid/openstateid release logic

The flags here attempt to make the code more general, but I find it
actually just adds confusion.

I think it's clearer to separate the logic for the open and lock cases
entirely.  And eventually we may want to separate the stateowner and
stateid types as well, as many of the fields aren't shared between the
lock and open cases.

Also move to eliminate forward references.

Start with the stateid's.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Reviewed-by: Benny Halevy <bhalevy@panasas.com>
fs/nfsd/nfs4state.c