linux/fs/nfs/flexfilelayout
Jeff Layton 746af0098b nfs: always update creds in mirror, even when we have an already connected ds
commit 0c8315dd56 upstream.

A ds can be associated with more than one mirror, but we currently skip
setting a mirror's credentials if we find that it's already set up with
a connected client.

The upshot is that we can end up sending DS writes with MDS credentials
instead of properly setting them up. Fix nfs4_ff_layout_prepare_ds to
always verify that the mirror's credentials are set up, even when we
have a DS that's already connected.

Reported-by: Tom Haynes <thomas.haynes@primarydata.com>
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-08-03 09:29:17 -07:00
..
flexfilelayout.c pNFS/flexfiles: Fix the reset of struct pgio_header when resending 2015-08-03 09:29:17 -07:00
flexfilelayout.h pnfs/flexfiles: Add the FlexFile Layout Driver 2015-02-03 11:06:52 -08:00
flexfilelayoutdev.c nfs: always update creds in mirror, even when we have an already connected ds 2015-08-03 09:29:17 -07:00
Makefile pnfs/flexfiles: Add the FlexFile Layout Driver 2015-02-03 11:06:52 -08:00