Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1609019
| From | Jeff Mahoney <jeffm@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: __link_block_group uses GFP_KERNEL |
| Date | 2017-03-25 00:20 +0100 |
| Message-ID | <toGEV-m5-13@gated-at.bofh.it> (permalink) |
| References | <toton-7Is-35@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On 3/24/17 5:02 AM, Denis Kirjanov wrote: > Hi guys, > > Looks like that current code does GFP_KERNEL allocation inside > __link_block_group. > the function invokes kobject_add and internally creates sysfs files > with the GFP_KERNEL flag set. Yep, that's a bug. > But since do_chunk_alloc executes insides the btrfs transaction it's > not allowed to sleep. It's allowed to sleep but isn't allowed to do reclaim that involves file system writeback. Michal Hocko's allocation context idea would fix this, but it's not there yet, so we'll need to defer the kobject_add until we can use GFP_KERNEL. -Jeff -- Jeff Mahoney SUSE Labs
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
__link_block_group uses GFP_KERNEL Denis Kirjanov <dkirjanov@cloudlinux.com> - 2017-03-24 10:10 +0100
Re: __link_block_group uses GFP_KERNEL Jeff Mahoney <jeffm@suse.com> - 2017-03-25 00:20 +0100
Re: __link_block_group uses GFP_KERNEL Denis Kirjanov <dkirjanov@cloudlinux.com> - 2017-03-25 07:50 +0100
csiph-web