summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/zlib.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-05-31 17:14:56 +0200
committerDavid Sterba <dsterba@suse.com>2017-06-19 18:26:02 +0200
commitfe30853307559c3ec237391507c2b395095aa151 (patch)
tree9e996f1c131b3acba6b2a745be86094134c3a4ec /fs/btrfs/zlib.c
parentbtrfs: adjust includes after vmalloc removal (diff)
downloadlinux-fe30853307559c3ec237391507c2b395095aa151.tar.xz
linux-fe30853307559c3ec237391507c2b395095aa151.zip
btrfs: add memalloc_nofs protections around alloc_workspace callback
The workspaces are preallocated at the beginning where we can safely use GFP_KERNEL, but in some cases the find_workspace might reach the allocation again, now in a more restricted context when the bios or pages are being compressed. To avoid potential lockup when alloc_workspace -> vmalloc would silently use the GFP_KERNEL, add the memalloc_nofs helpers around the critical call site. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zlib.c')
0 files changed, 0 insertions, 0 deletions