mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-06-04 05:14:06 +03:00
Extend PF_FSTRANS critical regions
Additional testing has shown that the region covered by PF_FSTRANS needs to be extended to cover the zpl_xattr_security_init() and init_acl() functions. The zpl_mark_dirty() function can also recurse and therefore must always be protected. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Chunwei Chen <tuxoko@gmail.com> Signed-off-by: Richard Yao <ryao@gentoo.org> Closes #3331
This commit is contained in:
@@ -57,13 +57,21 @@ zpl_inode_destroy(struct inode *ip)
|
||||
static void
|
||||
zpl_dirty_inode(struct inode *ip, int flags)
|
||||
{
|
||||
fstrans_cookie_t cookie;
|
||||
|
||||
cookie = spl_fstrans_mark();
|
||||
zfs_dirty_inode(ip, flags);
|
||||
spl_fstrans_unmark(cookie);
|
||||
}
|
||||
#else
|
||||
static void
|
||||
zpl_dirty_inode(struct inode *ip)
|
||||
{
|
||||
fstrans_cookie_t cookie;
|
||||
|
||||
cookie = spl_fstrans_mark();
|
||||
zfs_dirty_inode(ip, 0);
|
||||
spl_fstrans_unmark(cookie);
|
||||
}
|
||||
#endif /* HAVE_DIRTY_INODE_WITH_FLAGS */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user