Revert "GFS2: Prevent delete work from occurring on glocks used for create"
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 27 Nov 2020 13:23:04 +0000 (14:23 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 30 Nov 2020 23:25:21 +0000 (00:25 +0100)
commita55a47a3bc82cb53509ed2501697f9b385036195
tree4917192f17f0f32609910b80bb372c7cf7410c9c
parente3a77eebfa256c2f8871b8771f217b1afda4525e
Revert "GFS2: Prevent delete work from occurring on glocks used for create"

Since commit a0e3cc65fa29 ("gfs2: Turn gl_delete into a delayed work"), we're
cancelling any pending delete work of an iopen glock before attaching a new
inode to that glock in gfs2_create_inode.  This means that delete_work_func can
no longer be queued or running when attaching the iopen glock to the new inode,
and we can revert commit a4923865ea07 ("GFS2: Prevent delete work from
occurring on glocks used for create"), which tried to achieve the same but in a
racy way.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c
fs/gfs2/incore.h
fs/gfs2/inode.c