Whamcloud - gitweb
LU-4199 libcfs: remove assertion of spin_is_locked() 44/8144/20
authorLi Xi <lixi@ddn.com>
Thu, 10 Apr 2014 13:30:54 +0000 (09:30 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 18 Apr 2014 23:50:17 +0000 (23:50 +0000)
commitcc2ff1bfd66a5c004eb6ed61fc2dac3f1ab49d3a
treec4b51d772eecb1b0edd8743c6c1aa96142669b3a
parentac5cd8fb8a08bb76f64bcf3e48e0251612dfb120
LU-4199 libcfs: remove assertion of spin_is_locked()

spin_is_locked() is always false when the platform is
uniprocessor and CONFIG_DEBUG_SPINLOCK is not enabled.
This patch replaces its assertion by assert_spin_locked().

Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: Id8a7207b6fb08f10ccd4447263fec805df31ed67
Reviewed-on: http://review.whamcloud.com/8144
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
22 files changed:
libcfs/include/libcfs/linux/linux-lock.h
libcfs/include/libcfs/user-lock.h
libcfs/include/libcfs/winnt/winnt-lock.h
lustre/include/lustre_dlm.h
lustre/include/lustre_net.h
lustre/lov/lov_merge.c
lustre/obdclass/cl_lock.c
lustre/obdclass/cl_object.c
lustre/ofd/ofd_fmd.c
lustre/ofd/ofd_grant.c
lustre/osc/osc_cache.c
lustre/osc/osc_cl_internal.h
lustre/ptlrpc/client.c
lustre/ptlrpc/gss/gss_pipefs.c
lustre/ptlrpc/import.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/nrs_crr.c
lustre/ptlrpc/nrs_orr.c
lustre/ptlrpc/nrs_tbf.c
lustre/ptlrpc/pinger.c
lustre/ptlrpc/sec_bulk.c
lustre/ptlrpc/service.c