Skip to content
Snippets Groups Projects
Commit ffd1cf04 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

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: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent c5b7a240
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment