Re: [PATCH 2/2] btrfs: defer adding raid type kobject until after chunk relocation

2018-03-22 Thread David Sterba
On Wed, Mar 21, 2018 at 08:44:58AM +0200, Nikolay Borisov wrote: > > > On 20.03.2018 21:25, je...@suse.com wrote: > > From: Jeff Mahoney > > > > Any time the first block group of a new type is created, we add a new > > kobject to sysfs to hold the attributes for that type. Kobject-internal > >

Re: [PATCH 2/2] btrfs: defer adding raid type kobject until after chunk relocation

2018-03-20 Thread Nikolay Borisov
On 20.03.2018 21:25, je...@suse.com wrote: > From: Jeff Mahoney > > Any time the first block group of a new type is created, we add a new > kobject to sysfs to hold the attributes for that type. Kobject-internal > allocations always use GFP_KERNEL, making them prone to fs-reclaim races. > Whil

[PATCH 2/2] btrfs: defer adding raid type kobject until after chunk relocation

2018-03-20 Thread jeffm
From: Jeff Mahoney Any time the first block group of a new type is created, we add a new kobject to sysfs to hold the attributes for that type. Kobject-internal allocations always use GFP_KERNEL, making them prone to fs-reclaim races. While it appears as if this can occur any time a block group