Re: [RFC PATCH] Add proc interface to set PF_MEMALLOC flags

2019-09-11 Thread Mike Christie
On 09/11/2019 03:40 AM, Martin Raiber wrote: > On 10.09.2019 10:35 Damien Le Moal wrote: >> Mike, >> >> On 2019/09/09 19:26, Mike Christie wrote: >>> Forgot to cc linux-mm. >>> >>> On 09/09/2019 11:28 AM, Mike Christie wrote: There are several storage drivers like dm-multipath, iscsi, and nbd

Re: [RFC PATCH] Add proc interface to set PF_MEMALLOC flags

2019-09-11 Thread Tetsuo Handa
On 2019/09/11 22:52, Hillf Danton wrote: > > On Wed, 11 Sep 2019 19:07:34 +0900 >> >> But I guess that there is a problem. > > Not a new one. (see commit 7dea19f9ee63) > >> Setting PF_MEMALLOC_NOIO causes >> current_gfp_context() to mask __GFP_IO | __GFP_FS, but the OOM killer cannot >> be invok

Re: [RFC PATCH] Add proc interface to set PF_MEMALLOC flags

2019-09-11 Thread Tetsuo Handa
On 2019/09/11 12:13, Hillf Danton wrote: > > On Tue, 10 Sep 2019 11:06:03 -0500 From: Mike Christie >> >>> Really? Without any privilege check? So any random user can tap into >>> __GFP_NOIO allocations? >> >> That was a mistake on my part. I will add it in. >> > You may alternatively madvise a n

Re: [RFC PATCH] Add proc interface to set PF_MEMALLOC flags

2019-09-10 Thread Mike Christie
On 09/10/2019 05:00 AM, Kirill A. Shutemov wrote: > On Mon, Sep 09, 2019 at 11:28:04AM -0500, Mike Christie wrote: >> There are several storage drivers like dm-multipath, iscsi, and nbd that >> have userspace components that can run in the IO path. For example, >> iscsi and nbd's userspace deamons