aboutsummaryrefslogtreecommitdiffstats
path: root/fs/devpts
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-12-19 19:47:37 +0100
committerDavid Sterba <dsterba@suse.com>2019-02-27 14:10:25 +0100
commit7503b83d80f0a3da5dead1293f5454206e7f9db6 (patch)
treeeab3153af1def62923574438f992fc2cd7458af5 /fs/devpts
parentbtrfs: save drop_progress if we drop refs at all (diff)
downloadlinux-dev-7503b83d80f0a3da5dead1293f5454206e7f9db6.tar.xz
linux-dev-7503b83d80f0a3da5dead1293f5454206e7f9db6.zip
btrfs: move ulist allocation out of transaction in quota enable
The allocation happens with GFP_KERNEL after a transaction has been started, this can potentially cause deadlock if reclaim tries to get the memory by flushing filesystem data. The fs_info::qgroup_ulist is not used during transaction start when quotas are not enabled. The status bit BTRFS_FS_QUOTA_ENABLED is set later in btrfs_quota_enable so it's safe to move it before the transaction start. Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/devpts')
0 files changed, 0 insertions, 0 deletions