Whamcloud - gitweb
LU-4795 obd: Remove server_{get,put}_mount_2() functions 49/9749/7
authorSwapnil Pimpale <spimpale@ddn.com>
Fri, 21 Mar 2014 19:26:36 +0000 (15:26 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 6 May 2014 03:27:13 +0000 (03:27 +0000)
commitd7756663bc659044b3a63a3236d6d5fec264add2
treee01905933813be507e9a9ed37818aa99f1984b39
parent09cc4025440f7e4f9f887f4a2a9bdceef0da7689
LU-4795 obd: Remove server_{get,put}_mount_2() functions

This patch fixes server_put_mount() to call server_deregister_mount()
only if the caller is never going to need the mount again. The only
caller of server_get_mount_2(), lustre_find_lwp_by_index(), is
changed to now call server_get_mount() and server_put_mount()
without calling server_deregister_mount().

Signed-off-by: Swapnil Pimpale <spimpale@ddn.com>
Change-Id: I37fd00bd477f946ac1bd8375da4899c2a1fe9e22
Reviewed-on: http://review.whamcloud.com/9749
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
lustre/include/lustre_disk.h
lustre/mdt/mdt_handler.c
lustre/mgs/mgs_handler.c
lustre/obdclass/obd_mount.c
lustre/obdclass/obd_mount_server.c
lustre/ofd/ofd_dev.c