aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/print-tree.c
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2018-04-05 07:40:15 +0000
committerDavid Sterba <[email protected]>2018-04-05 17:22:35 +0000
commit1e1c50a929bc9e49bc3f9935b92450d9e69f8158 (patch)
tree1e950e1030b25534acc205832c6eae3b05aee1b4 /fs/btrfs/print-tree.c
parentBtrfs: bail out on error during replay_dir_deletes (diff)
downloadkernel-1e1c50a929bc9e49bc3f9935b92450d9e69f8158.tar.gz
kernel-1e1c50a929bc9e49bc3f9935b92450d9e69f8158.zip
btrfs: Fix possible softlock on single core machines
do_chunk_alloc implements a loop checking whether there is a pending chunk allocation and if so causes the caller do loop. Generally this loop is executed only once, however testing with btrfs/072 on a single core vm machines uncovered an extreme case where the system could loop indefinitely. This is due to a missing cond_resched when loop which doesn't give a chance to the previous chunk allocator finish its job. The fix is to simply add the missing cond_resched. Fixes: 6d74119f1a3e ("Btrfs: avoid taking the chunk_mutex in do_chunk_alloc") Signed-off-by: Nikolay Borisov <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/print-tree.c')
0 files changed, 0 insertions, 0 deletions