NFSv4.1: Use layout credentials for get_deviceinfo calls
This is not strictly needed, since get_deviceinfo is not allowed to return NFS4ERR_ACCESS or NFS4ERR_WRONG_CRED, but lets do it anyway for consistency with other pNFS operations. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
@ -643,7 +643,8 @@ filelayout_check_layout(struct pnfs_layout_hdr *lo,
|
||||
d = nfs4_find_get_deviceid(NFS_SERVER(lo->plh_inode)->pnfs_curr_ld,
|
||||
NFS_SERVER(lo->plh_inode)->nfs_client, id);
|
||||
if (d == NULL) {
|
||||
dsaddr = filelayout_get_device_info(lo->plh_inode, id, gfp_flags);
|
||||
dsaddr = filelayout_get_device_info(lo->plh_inode, id,
|
||||
lo->plh_lc_cred, gfp_flags);
|
||||
if (dsaddr == NULL)
|
||||
goto out;
|
||||
} else
|
||||
|
Reference in New Issue
Block a user