]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl
authorFilipe Manana <fdmanana@suse.com>
Thu, 13 Dec 2018 21:16:56 +0000 (21:16 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:17 +0000 (14:13 +0100)
commit4437f6f37ed0e9226ddcc376c0c5321751a56266
treeff19cf14a965fd30576f37ced859a19856d0f79a
parent2c5187f47f9e7f55ee6650c31ab77fbd9c991026
Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl

We are holding a transaction handle when setting an acl, therefore we can
not allocate the xattr value buffer using GFP_KERNEL, as we could deadlock
if reclaim is triggered by the allocation, therefore setup a nofs context.

Fixes: 2be01c5b3734f ("btrfs: use GFP_KERNEL for xattr and acl allocations")
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>
fs/btrfs/acl.c