ocfs2: kill EBUSY from dlmfs_evict_inode
authorJunxiao Bi <junxiao.bi@oracle.com>
Tue, 7 Jun 2022 17:12:26 +0000 (10:12 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 17 Jun 2022 02:58:20 +0000 (19:58 -0700)
commit53fd5ffbb5197b8cc2d73d2bbc0f688afd45736c
treef92102e3b576d8127656ca16115d5143eea04f68
parent0fe6ee8f123a4dfb529a5aff07536bb481f34043
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>
fs/ocfs2/dlmfs/dlmfs.c