summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-05-31 19:21:38 +0200
committerDavid Sterba <dsterba@suse.com>2017-06-19 18:26:02 +0200
commitde2491fdefe7e599fa08a81a1b89d03c96c9cbc3 (patch)
treeb3fd451798e685ab306e10bbc842303d7aecace0 /fs/btrfs/ioctl.c
parentbtrfs: send: use kvmalloc in iterate_dir_item (diff)
downloadlinux-de2491fdefe7e599fa08a81a1b89d03c96c9cbc3.tar.xz
linux-de2491fdefe7e599fa08a81a1b89d03c96c9cbc3.zip
btrfs: scrub: add memalloc_nofs protection around init_ipath
init_ipath is called from a safe ioctl context and from scrub when printing an error. The protection is added for three reasons: * init_data_container calls vmalloc and this does not work as expected in the GFP_NOFS context, so this silently does GFP_KERNEL and might deadlock in some cases * keep the context constraint of GFP_NOFS, used by scrub * we want to use GFP_KERNEL unconditionally inside init_ipath or its callees Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
0 files changed, 0 insertions, 0 deletions