nfs41: drain session cleanup
authorAndy Adamson <andros@netapp.com>
Fri, 4 Dec 2009 20:55:39 +0000 (15:55 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 4 Dec 2009 20:55:39 +0000 (15:55 -0500)
commit691daf3b0c410c8bcab6735796be03ea446e1924
tree989669b839146bcc36dc2b059b5c188dd901987d
parentea028ac92541ac30bf202ed94cb53eec2ea0c9d6
nfs41: drain session cleanup

Do not wake up the next slot_tbl_waitq task in nfs4_free_slot because we
may be draining the slot. Either signal the state manager that the session
is drained (the state manager wakes up tasks) OR wake up the next task.

In nfs41_sequence_done, the slot dereference is only needed in the sequence
operation success case.

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