Browse Source

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>
Trond Myklebust 7 years ago
parent
commit
e8d8aa46be
1 changed files with 2 additions and 2 deletions
  1. 2 2
      fs/nfs/nfs4xdr.c

+ 2 - 2
fs/nfs/nfs4xdr.c

@@ -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);