]> git.baikalelectronics.ru Git - kernel.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)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 25 Jun 2015 23:35:21 +0000 (19:35 -0400)
commit70184a413225fbf92e3edd24a22dbdc88879dda6
treecb58025cee142c158326d6c67dedb4ec9b63e32a
parent11fd2eedc9ae6c29762885c5b7d750763e83d2e2
nfs: always update creds in mirror, even when we have an already connected ds

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>
Cc: stable@vger.kernel.org # 4.0+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/flexfilelayout/flexfilelayoutdev.c