]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd41: expand solo sequence check
authorAndy Adamson <andros@netapp.com>
Thu, 27 Aug 2009 16:07:40 +0000 (12:07 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 28 Aug 2009 16:20:15 +0000 (12:20 -0400)
commit0e856caefa1695c459e9d9786a3d4a6f05d8cff5
treefa9f57f48f7f136fc5e4d821454ffb47ec0c22f6
parent884c89e8467fd91ed3cdeecdc7bd069b556fb58f
nfsd41: expand solo sequence check

Compounds consisting of only a sequence operation don't need any
additional caching beyond the sequence information we store in the slot
entry.  Fix nfsd4_is_solo_sequence to identify this case correctly.

The additional check for a failed sequence in nfsd4_store_cache_entry()
is redundant, since the nfsd4_is_solo_sequence call lower down catches
this case.

The final ce_cachethis set in nfsd4_sequence is also redundant.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c
include/linux/nfsd/xdr4.h