2016-06-16 20:01:01

by Weston Andros Adamson

[permalink] [raw]
Subject: nfs/flexfiles patches for stable

The following patches are already merged upstream, but should be
included in stable releases 4.5.y and 4.6.y.

They fix an issue where the client can use the wrong credential if the
server returns a read-only and readwrite layout with different creds.
The client then goes into a LAYOUTRETURN/LAYOUTGET loop that
it never recovers from.

This has been seen in recent fedora releases.

Here are the relevant patches:

commit 547a637630c61b9e1dae9abce2b44ce7076244af
Author: Jeff Layton <[email protected]>
Date: Thu Apr 21 20:51:57 2016 -0400

nfs: don't call nfs4_ff_layout_prepare_ds from ff_layout_get_ds_cred

commit 57f3f4c0cd50e90aa92eec20d9c309dd67c594a5
Author: Jeff Layton <[email protected]>
Date: Thu Apr 21 20:51:58 2016 -0400

nfs: have ff_layout_get_ds_cred take a reference to the cred

commit 90a0be00e9d29d9baac27c0c63a5e71ca1334001
Author: Jeff Layton <[email protected]>
Date: Thu Apr 21 20:51:59 2016 -0400

nfs: get a reference to the credential in ff_layout_alloc_lseg

commit 3064b6861d00b7124558cdf79f9387f948361be3
Author: Jeff Layton <[email protected]>
Date: Thu Apr 21 20:52:00 2016 -0400

nfs: have flexfiles mirror keep creds for both ro and rw layouts



linux-4.6.y: applies cleanly

linux-4.5.y: needs another patch to apply cleanly — and that patch looks pretty important too!

commit 849dc3244c916545790bfb9055625a3719061c92
Author: Jeff Layton <[email protected]>
Date: Wed Feb 24 15:28:29 2016 -0500

nfs4: nfs4_ff_layout_prepare_ds should return NULL if connection failed


Thanks,

-dros