fs/nfs: stop using a global variable for nfs packet payload
The lifetime of the data provided by a global variable is hard to track.
So move the data pointer into the nfs_priv structure and let rpc_req
return the data to its callers which in turn are responsible to free it.

The callers are changed to use a local variable accordingly. This makes
it plausible that the previous commit catched all usages of the global
data.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 47c87c4 commit 16cb624bf453274a4f3c43f23b4278a4e8698e7e
@Uwe Kleine-König Uwe Kleine-König authored on 21 Jan 2019
Sascha Hauer committed on 22 Jan 2019
Showing 1 changed file
View
fs/nfs.c