Simplify getting clientid_owner for LAYOUT ops (fixes CID24720)

The LAYOUT ops used to call get_clientid_owner to get the clientid owner
for the clientid associated with the current session. Since the ops MUST
be within a session, and thus the session and it's associated clientid
MUST be valid, we don't need to lookup, we can just look into the
associated clientid for it's owner.

This resolves any reference counting issues, and happens to clear a
Coverity bug with an ignored return result.

Signed-off-by: Frank S. Filz <>
Acked-by: Malahal Naineni <>
(cherry picked from commit 34d7e5c409806e077341410d82cf5ec89ad6f3ae)

Acked-by: Niels de Vos <>
Signed-off-by: Soumya Koduri <>
4 files changed
tree: c5adbce01d5b74a874f9f16c45adcaba5d3eead6
  1. contrib/
  2. coverity/
  3. jenkins/
  4. rpm/
  5. share/
  6. src/
  7. .gitignore
  8. .gitmodules
  9. .travis.yml


NFS-Ganesha is an NFSv3,v4,v4.1 fileserver that runs in user mode on most UNIX/Linux systems. It also supports the 9p.2000L protocol.

For more information, consult the project wiki.