gfs2: Add GL_NOBLOCK flag
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 13 Nov 2023 15:49:38 +0000 (16:49 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 18 Dec 2023 13:24:33 +0000 (14:24 +0100)
commitf9f229c1f75df2f1fe63b16615d184da4e90bb10
tree795568a354e36c9e8939b271346ba363fe771142
parent95d0f6252564420d6c660593db8505af61c2dd0a
gfs2: Add GL_NOBLOCK flag

Add a GL_NOBLOCK flag for trying to take a glock without sleeping.  This
will be used for implementing non-blocking lookup (MAY_NOT_BLOCK in
gfs2_permission, LOOKUP_RCU in gfs2_drevalidate).

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