diff options
author | Filipe Manana <fdmanana@suse.com> | 2018-12-13 21:16:45 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-23 20:11:22 +0100 |
commit | 80dcd07c27dfe24f79a40897d8ecac4c38b1875d (patch) | |
tree | b4fa815e032d6295ab6a478b5e00bb23cabd1dc1 /fs/btrfs/dev-replace.c | |
parent | 98bb142aaff299c44486d4e763c6da58fb913daf (diff) | |
download | talos-obmc-linux-80dcd07c27dfe24f79a40897d8ecac4c38b1875d.tar.gz talos-obmc-linux-80dcd07c27dfe24f79a40897d8ecac4c38b1875d.zip |
Btrfs: setup a nofs context for memory allocation at btrfs_create_tree()
commit b89f6d1fcb30a8cbdc18ce00c7d93792076af453 upstream.
We are holding a transaction handle when creating a tree, therefore we can
not allocate the root using GFP_KERNEL, as we could deadlock if reclaim is
triggered by the allocation, therefore setup a nofs context.
Fixes: 74e4d82757f74 ("btrfs: let callers of btrfs_alloc_root pass gfp flags")
CC: stable@vger.kernel.org # 4.9+
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions