linux-stable/fs/ocfs2/dlmfs
Junxiao Bi 53fd5ffbb5 ocfs2: kill EBUSY from dlmfs_evict_inode
When unlinking a dlmfs, first it will invoke dlmfs_unlink(), and then
invoke dlmfs_evict_inode(), user_dlm_destroy_lock() is invoked in both
places, the second one from dlmfs_evict_inode() will get EBUSY error
because USER_LOCK_IN_TEARDOWN is already set in lockres.  This doesn't
affect any function, just the error log is annoying.

Link: https://lkml.kernel.org/r/20220607171226.86672-1-junxiao.bi@oracle.com
Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-06-16 19:58:20 -07:00
..
Makefile ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
dlmfs.c ocfs2: kill EBUSY from dlmfs_evict_inode 2022-06-16 19:58:20 -07:00
userdlm.c ocfs2: dlmfs: fix error handling of user_dlm_destroy_lock 2022-05-25 13:05:42 -07:00
userdlm.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00