OpenCloudOS-Kernel/fs/ocfs2/dlm
Jules Irenge 8f745e62a1 ocfs2: add missing annotation for dlm_empty_lockres()
Sparse reports a warning at dlm_empty_lockres()

  warning: context imbalance in dlm_purge_lockres() - unexpected unlock

The root cause is the missing annotation at dlm_purge_lockres()

Add the missing __must_hold(&dlm->spinlock)

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Link: http://lkml.kernel.org/r/20200403160505.2832-4-jbi.octave@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-02 10:59:05 -07:00
..
Makefile ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
dlmapi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145 2019-05-30 11:25:18 -07:00
dlmast.c ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
dlmcommon.h ocfs2: dlm: replace zero-length array with flexible-array member 2020-04-02 09:35:25 -07:00
dlmconvert.c ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
dlmconvert.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145 2019-05-30 11:25:18 -07:00
dlmdebug.c ocfs2: use scnprintf() for avoiding potential buffer overflow 2020-04-02 09:35:26 -07:00
dlmdebug.h ocfs2: further debugfs cleanups 2019-09-24 15:54:07 -07:00
dlmdomain.c ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
dlmdomain.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 145 2019-05-30 11:25:18 -07:00
dlmlock.c ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
dlmmaster.c ocfs2: add missing annotation for dlm_empty_lockres() 2020-06-02 10:59:05 -07:00
dlmrecovery.c ocfs2/dlm: remove redundant assignment to ret 2020-01-31 10:30:36 -08:00
dlmthread.c ocfs2: remove dlm_lock_is_remote 2020-04-02 09:35:25 -07:00
dlmunlock.c ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00