nfs: fix credential handling problems in flexfiles code
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | nfs: fix potential credential leak in ff_layout_update_mirror_credfs/ | +2 | 0 replies | |
| 2/2 | nfs: always update creds in mirror, even when we have an already connected dsfs/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] nfs: fix credential handling problems in flexfiles code
Tom reported seeing some NFSv3 WRITE calls going to a mirror DS that were using the MDS credentials instead of the ones that were provided in the LAYOUTGET response.
The problem turns out to be an issue in how mirror creds were being set up. Creds are associated with the mirror, not the DS, but we'd skip trying to set up the credentials in the mirror when we found that the DS was already connected.
While I was in there, I spotted a potential credential leak too and fixed that as well.
Jeff Layton (2):
nfs: fix potential credential leak in ff_layout_update_mirror_cred
nfs: always update creds in mirror, even when we have an already
connected ds
fs/nfs/flexfilelayout/flexfilelayoutdev.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
2.4.3