Whamcloud - gitweb
LU-5396: define __must_hold() for older kernels 94/11294/12
authorfrank zago <fzago@cray.com>
Wed, 30 Jul 2014 03:11:04 +0000 (22:11 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 27 Aug 2014 15:59:31 +0000 (15:59 +0000)
commit9159b2d1393d5a1de1e601d2b0e1978668e5ec13
tree560a30b316a9e466659b45ca3d5b415d65e753ab
parent07bd49670282fcd75f1a937b621aa3c11db88407
LU-5396: define __must_hold() for older kernels

Backport of sparse macro __must_hold(), introduced in linux kernel
commit 8529091e:

linux/compiler.h has macros to denote functions that acquire or release
locks, but not to denote functions called with a lock held that return
with the lock still held.  Add a __must_hold macro to cover that case.

Change-Id: Ic77304a5f78f1681cfc48a728a12759366bb2cb8
Signed-off-by: frank zago <fzago@cray.com>
Reviewed-on: http://review.whamcloud.com/11294
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Patrick Farrell <paf@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/libcfs.h