From: Jeff Layton Date: Tue, 9 Jun 2015 23:43:57 +0000 (-0400) Subject: nfs: convert setclientid and exchange_id encoders to use clp->cl_owner_id X-Git-Tag: omap-for-v4.2/fixes-rc1^2~39^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a6bb738792500e8b4534c0350c13a132bac0492;p=pandora-kernel.git nfs: convert setclientid and exchange_id encoders to use clp->cl_owner_id ...instead of buffers that are part of their arg structs. We already hold a reference to the client, so we might as well use the allocated buffer. In the event that we can't allocate the clp->cl_owner_id, then just return -ENOMEM. Note too that we switch from a GFP_KERNEL allocation here to GFP_NOFS. It's possible we could end up trying to do a SETCLIENTID or EXCHANGE_ID in order to reclaim some memory, and the GFP_KERNEL allocations in the existing code could cause recursion back into NFS reclaim. Signed-off-by: Jeff Layton Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed