Skip to content

Commit eaea294

Browse files
committed
Merge tag 'for-5.6-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fix from David Sterba: "This is the fix for sleeping in a locked section bug reported by Dave Jones, caused by a patch dependence in development and pulled branches. I picked the existing patch over the fixup that Filipe sent, as it's a bit more generic fix. I've verified it with a specific test case, some rsync stress and one round of fstests" * tag 'for-5.6-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: btrfs: don't set path->leave_spinning for truncate
2 parents 11a48a5 + 52e29e3 commit eaea294

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/btrfs/inode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4142,7 +4142,6 @@ int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans,
41424142
goto out;
41434143
}
41444144

4145-
path->leave_spinning = 1;
41464145
ret = btrfs_search_slot(trans, root, &key, path, -1, 1);
41474146
if (ret < 0)
41484147
goto out;
@@ -4294,7 +4293,6 @@ int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans,
42944293
root == fs_info->tree_root)) {
42954294
struct btrfs_ref ref = { 0 };
42964295

4297-
btrfs_set_path_blocking(path);
42984296
bytes_deleted += extent_num_bytes;
42994297

43004298
btrfs_init_generic_ref(&ref, BTRFS_DROP_DELAYED_REF,

0 commit comments

Comments
 (0)