nfs: have ff_layout_get_ds_cred take a reference to the cred
authorJeff Layton <jlayton@poochiereds.net>
Fri, 22 Apr 2016 00:51:58 +0000 (20:51 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 9 May 2016 13:05:40 +0000 (09:05 -0400)
commit57f3f4c0cd50e90aa92eec20d9c309dd67c594a5
tree19652693dacecdead7fecf42dc3a1bb64051eca7
parent547a637630c61b9e1dae9abce2b44ce7076244af
nfs: have ff_layout_get_ds_cred take a reference to the cred

In later patches, we're going to want to allow the creds to be updated
when we get a new layout with updated creds. Have this function take
a reference to the cred that is later put once the call has been
dispatched.

Also, prepare for this change by ensuring we follow RCU rules when
getting a reference to the cred as well.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/flexfilelayout/flexfilelayoutdev.c