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 <ffilzlnx@mindspring.com>
Acked-by: Malahal Naineni <malahal@us.ibm.com>
(cherry picked from commit 34d7e5c409806e077341410d82cf5ec89ad6f3ae)

Reported-URL: https://github.com/nfs-ganesha/nfs-ganesha/pull/58/
Acked-by: Niels de Vos <ndevos@redhat.com>
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
4 files changed
tree: c5adbce01d5b74a874f9f16c45adcaba5d3eead6
  1. .gitignore
  2. .gitmodules
  3. .travis.yml
  4. README.md
  5. contrib/
  6. coverity/
  7. jenkins/
  8. rpm/
  9. run_jenkins_compilation.sh
  10. run_jenkins_sigmund.sh
  11. share/
  12. src/
README.md

nfs-ganesha

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.