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. contrib/
  2. coverity/
  3. jenkins/
  4. rpm/
  5. share/
  6. src/
  7. .gitignore
  8. .gitmodules
  9. .travis.yml
  10. README.md
  11. run_jenkins_compilation.sh
  12. run_jenkins_sigmund.sh
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.