Re: [PATCH] Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl

2019-01-03 Thread David Sterba
On Thu, Dec 13, 2018 at 09:16:56PM +, fdman...@kernel.org wrote: > From: Filipe Manana > > 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, theref

Re: [PATCH] Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl

2018-12-13 Thread Nikolay Borisov
On 13.12.18 г. 23:16 ч., fdman...@kernel.org wrote: > From: Filipe Manana > > 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 no

[PATCH] Btrfs: setup a nofs context for memory allocation at __btrfs_set_acl

2018-12-13 Thread fdmanana
From: Filipe Manana 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: 39a27ec1004e8 ("btrfs: use GFP_KERNEL for xat