Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1610395
| From | Denis Kirjanov <dkirjanov@cloudlinux.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: __link_block_group uses GFP_KERNEL |
| Date | 2017-03-28 10:20 +0200 |
| Message-ID | <tpUw9-4KI-1@gated-at.bofh.it> (permalink) |
| References | <toton-7Is-35@gated-at.bofh.it> <toGEV-m5-13@gated-at.bofh.it> <toNGp-5pq-1@gated-at.bofh.it> <tpGCR-37r-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 3/27/17, David Sterba <dsterba@suse.cz> wrote: > On Sat, Mar 25, 2017 at 09:48:28AM +0300, Denis Kirjanov wrote: >> On 3/25/17, Jeff Mahoney <jeffm@suse.com> wrote: >> > 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. >> >> Ok, I see. Can you point out to the initial patchset? > > https://lwn.net/Articles/716323/ > > Fixing this properly is a lot of work so we might need to add a > temporary workaround, as Jeff suggests, to move calling into sysfs to a > later time. > Care to send a patch? Or I can dig a bit. Thanks!
Back to linux.kernel | Previous | Next — Previous 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
Re: __link_block_group uses GFP_KERNEL David Sterba <dsterba@suse.cz> - 2017-03-27 19:30 +0200
Re: __link_block_group uses GFP_KERNEL Denis Kirjanov <dkirjanov@cloudlinux.com> - 2017-03-28 10:20 +0200
csiph-web