mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
NFSv4: Allow GFP_NOIO sleeps in decode_attr_owner/decode_attr_group
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
85e3dd44c5
commit
e8d8aa46be
@ -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,
|
|||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user