提交 cb067935 编写于 作者: T Trond Myklebust

pNFS/flexfiles: Fix ff_layout_add_ds_error_locked()

When we're merging an old entry into our new entry, we want to ensure that
we add the list entry in the correct place.
Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
上级 7a0566b3
...@@ -254,8 +254,9 @@ ff_layout_add_ds_error_locked(struct nfs4_flexfile_layout *flo, ...@@ -254,8 +254,9 @@ ff_layout_add_ds_error_locked(struct nfs4_flexfile_layout *flo,
} }
/* Entries match, so merge "err" into "dserr" */ /* Entries match, so merge "err" into "dserr" */
extend_ds_error(dserr, err->offset, err->length); extend_ds_error(dserr, err->offset, err->length);
list_del(&err->list); list_replace(&err->list, &dserr->list);
kfree(err); kfree(err);
return;
} }
list_add_tail(&dserr->list, head); list_add_tail(&dserr->list, head);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册