Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Jonathan Curley and committed by
Anna Schumaker
fec80afc a890a2e3

+2 -2
+2 -2
fs/nfs/flexfilelayout/flexfilelayout.c
··· 532 532 if (mirror != fls->mirror_array[i]) { 533 533 /* swap cred ptrs so free_mirror will clean up old */ 534 534 if (lgr->range.iomode == IOMODE_READ) { 535 - cred = xchg(&mirror->ro_cred, cred); 535 + cred = xchg(&mirror->ro_cred, fls->mirror_array[i]->ro_cred); 536 536 rcu_assign_pointer(fls->mirror_array[i]->ro_cred, cred); 537 537 } else { 538 - cred = xchg(&mirror->rw_cred, cred); 538 + cred = xchg(&mirror->rw_cred, fls->mirror_array[i]->rw_cred); 539 539 rcu_assign_pointer(fls->mirror_array[i]->rw_cred, cred); 540 540 } 541 541 ff_layout_free_mirror(fls->mirror_array[i]);