[pnfs] [PATCH 2/4] pnfsd: fix bug in return_layout for RETURN_FILE
Benny Halevy
bhalevy at panasas.com
Thu Sep 20 17:31:33 EDT 2007
loop was on wrong list (lo_perclnt rather than lo_perfile)
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
fs/nfsd/nfs4state.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index b441e89..bc82738 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -4541,7 +4541,7 @@ int nfs4_pnfs_return_layout(struct super_block *sb, struct svc_fh *current_fh,
/* update layouts */
if (lrp->lr_return_type == RETURN_FILE) {
- list_for_each_entry_safe (lp, nextlp, &fp->fi_layouts, lo_perclnt) {
+ list_for_each_entry_safe (lp, nextlp, &fp->fi_layouts, lo_perfile) {
if (lp->lo_client != clp ||
lp->lo_seg.layout_type != lrp->lr_seg.layout_type ||
(lp->lo_seg.iomode != lrp->lr_seg.iomode &&
More information about the pNFS
mailing list