]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfs2: Prevent inode creation race
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 19 Nov 2024 11:15:26 +0000 (12:15 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 19 Nov 2024 12:05:41 +0000 (13:05 +0100)
commitffd1cf0443a208b80e40100ed02892d2ec74c7e9
tree612ad531303644fcfe19cf8e142a70609f965d28
parentc5b7a2400edc458b22133d5e5394bea26eab1923
gfs2: Prevent inode creation race

When a request to evict an inode comes in over the network, we are
trying to grab an inode reference via the iopen glock's gl_object
pointer.  There is a very small probability that by the time such a
request comes in, inode creation hasn't completed and the I_NEW flag is
still set.  To deal with that, wait for the inode and then check if
inode creation was successful.

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