]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfs: always update creds in mirror, even when we have an already connected ds
authorJeff Layton <jlayton@poochiereds.net>
Wed, 24 Jun 2015 16:10:24 +0000 (12:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:17 +0000 (09:29 -0700)
commit746af0098bf877cac19f821997cfb21a530e343d
tree6870082f98cb748a331c3ca4558a2470fcce4bbd
parent1488271989894c89ddac1fa6764edb89421c2160
nfs: always update creds in mirror, even when we have an already connected ds

commit 0c8315dd56577445dd1afe6b9cfa06b7efdf2f82 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>
fs/nfs/flexfilelayout/flexfilelayoutdev.c