mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
work around snapshot shutdown race reported by Henri Hennebert
This commit is contained in:
parent
2ab2a8354e
commit
139ccddec0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193110
@ -564,8 +564,13 @@ gfs_file_inactive(vnode_t *vp)
|
||||
if (fp->gfs_parent == NULL || (vp->v_flag & V_XATTRDIR))
|
||||
goto found;
|
||||
|
||||
dp = fp->gfs_parent->v_data;
|
||||
|
||||
/*
|
||||
* XXX cope with a FreeBSD-specific race wherein the parent's
|
||||
* snapshot data can be freed before the parent is
|
||||
*/
|
||||
if ((dp = fp->gfs_parent->v_data) == NULL)
|
||||
return (NULL);
|
||||
|
||||
/*
|
||||
* First, see if this vnode is cached in the parent.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user