mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-17 12:30:29 -05:00
NFSv4/flexfiles: Remove cred local variable dependency
No-op preparation change to remove dependency on cred local variable. Subsequent striping diff has a cred per stripe so this local variable can't be trusted to be the same. Signed-off-by: Jonathan Curley <jcurley@purestorage.com> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
This commit is contained in:
committed by
Anna Schumaker
parent
a890a2e339
commit
fec80afc41
@@ -532,10 +532,10 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,
|
||||
if (mirror != fls->mirror_array[i]) {
|
||||
/* swap cred ptrs so free_mirror will clean up old */
|
||||
if (lgr->range.iomode == IOMODE_READ) {
|
||||
cred = xchg(&mirror->ro_cred, cred);
|
||||
cred = xchg(&mirror->ro_cred, fls->mirror_array[i]->ro_cred);
|
||||
rcu_assign_pointer(fls->mirror_array[i]->ro_cred, cred);
|
||||
} else {
|
||||
cred = xchg(&mirror->rw_cred, cred);
|
||||
cred = xchg(&mirror->rw_cred, fls->mirror_array[i]->rw_cred);
|
||||
rcu_assign_pointer(fls->mirror_array[i]->rw_cred, cred);
|
||||
}
|
||||
ff_layout_free_mirror(fls->mirror_array[i]);
|
||||
|
||||
Reference in New Issue
Block a user