Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-14965 ldiskfs: hold inode mutex for ldiskfs_orphan_add()
[fs/lustre-release.git]
/
ldiskfs
/
kernel_patches
/
patches
/
rhel7.7
/
ext4-large-eas.patch
diff --git
a/ldiskfs/kernel_patches/patches/rhel7.7/ext4-large-eas.patch
b/ldiskfs/kernel_patches/patches/rhel7.7/ext4-large-eas.patch
index
b8148e0
..
239e1f6
100644
(file)
--- a/
ldiskfs/kernel_patches/patches/rhel7.7/ext4-large-eas.patch
+++ b/
ldiskfs/kernel_patches/patches/rhel7.7/ext4-large-eas.patch
@@
-783,7
+783,7
@@
Index: linux-stage/fs/ext4/xattr.c
new_offs = le16_to_cpu(last->e_value_offs) +
value_offs_shift;
BUG_ON(new_offs + le32_to_cpu(last->e_value_size)
new_offs = le16_to_cpu(last->e_value_offs) +
value_offs_shift;
BUG_ON(new_offs + le32_to_cpu(last->e_value_size)
-@@ -149
4,21 +1835,140
@@ cleanup:
+@@ -149
6,21 +1840,142
@@ cleanup:
}
}
@@
-860,7
+860,9
@@
Index: linux-stage/fs/ext4/xattr.c
+ lea_ino_array->xia_inodes[idx], &error);
+ if (error)
+ continue;
+ lea_ino_array->xia_inodes[idx], &error);
+ if (error)
+ continue;
++ inode_lock(ea_inode);
+ ext4_orphan_add(handle, ea_inode);
+ ext4_orphan_add(handle, ea_inode);
++ inode_unlock(ea_inode);
+ /* the inode's i_count will be released by caller */
+ }
+
+ /* the inode's i_count will be released by caller */
+ }
+