提交 e8d8aa46 编写于 作者: T Trond Myklebust 提交者: Anna Schumaker

NFSv4: Allow GFP_NOIO sleeps in decode_attr_owner/decode_attr_group

Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
上级 85e3dd44
...@@ -3981,7 +3981,7 @@ static int decode_attr_owner(struct xdr_stream *xdr, uint32_t *bitmap, ...@@ -3981,7 +3981,7 @@ static int decode_attr_owner(struct xdr_stream *xdr, uint32_t *bitmap,
bitmap[1] &= ~FATTR4_WORD1_OWNER; bitmap[1] &= ~FATTR4_WORD1_OWNER;
if (owner_name != NULL) { if (owner_name != NULL) {
len = decode_nfs4_string(xdr, owner_name, GFP_NOWAIT); len = decode_nfs4_string(xdr, owner_name, GFP_NOIO);
if (len <= 0) if (len <= 0)
goto out; goto out;
dprintk("%s: name=%s\n", __func__, owner_name->data); dprintk("%s: name=%s\n", __func__, owner_name->data);
...@@ -4016,7 +4016,7 @@ static int decode_attr_group(struct xdr_stream *xdr, uint32_t *bitmap, ...@@ -4016,7 +4016,7 @@ static int decode_attr_group(struct xdr_stream *xdr, uint32_t *bitmap,
bitmap[1] &= ~FATTR4_WORD1_OWNER_GROUP; bitmap[1] &= ~FATTR4_WORD1_OWNER_GROUP;
if (group_name != NULL) { if (group_name != NULL) {
len = decode_nfs4_string(xdr, group_name, GFP_NOWAIT); len = decode_nfs4_string(xdr, group_name, GFP_NOIO);
if (len <= 0) if (len <= 0)
goto out; goto out;
dprintk("%s: name=%s\n", __func__, group_name->data); dprintk("%s: name=%s\n", __func__, group_name->data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册