Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1426045
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Michal Hocko <mhocko@kernel.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH] vhost, mm: make sure that oom_reaper doesn't reap memory read by vhost |
| Date | Mon, 20 Jun 2016 00:00:01 +0200 |
| Message-ID | <rLSV3-7Vc-5@gated-at.bofh.it> (permalink) |
| References | <rKXWN-4zo-1@gated-at.bofh.it> <rLbZM-54e-15@gated-at.bofh.it> <rLSBI-7NN-3@gated-at.bofh.it> |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oVynCJGnXgyEWzLT+R1caWFGPzgV26tP06tjWLaKcC0=; b=Sd8yMIzwrloQd5WU65tCqjhKATbpAHLF/XrGVeY1Z6rWEpCrjKcTC8z2MAwblhUlkp iXvweZggUm8AQs8h67h9324oB2kbWIg96mS3K6rPpWAgVGJKNtdDhcyEYdsE2nFTQkJA fexB2tTbM9pdnCXM9Be98iIQB0JpFJ4HuueF/lt/Aufwg/L+H0wjr4bRxY81XQ2EPApL LzLZ+8hY6BDR7s5pxo+bXvccOFb1uUy6ulrDHfshF8u5WtafBpTqbi+TLDldMm7efY6b Hi0Z7lQ1v264tr0jc1RgKX+phFzhMTdMZsfvKMgoTrLDSe9L1OttIcVcaaVrpuXodkgb BWKg== |
| X-Gm-Message-State | ALyK8tKOEtqlDs++4hhEAIwTMA/gGD3k5o6YS2PHkvADVgumSwZnzHpL+GrIf8MXAjVYTA== |
| X-Received | by 10.194.163.166 with SMTP id yj6mr11387598wjb.116.1466373180295; Sun, 19 Jun 2016 14:53:00 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.6.0 (2016-04-01) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 23 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Vladimir Davydov <vdavydov@parallels.com>, Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>, linux-mm@kvack.org, virtualization@lists.linux-foundation.org, LKML <linux-kernel@vger.kernel.org> |
| X-Original-Date | Sun, 19 Jun 2016 23:52:58 +0200 |
| X-Original-Message-ID | <20160619215258.GA2110@dhcp22.suse.cz> |
| X-Original-References | <1466154017-2222-1-git-send-email-mhocko@kernel.org> <20160618025904-mutt-send-email-mst@redhat.com> <20160619213543.GA32752@dhcp22.suse.cz> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1426045 |
Show key headers only | View raw
On Sun 19-06-16 23:35:43, Michal Hocko wrote:
> On Sat 18-06-16 03:09:02, Michael S. Tsirkin wrote:
> > On Fri, Jun 17, 2016 at 11:00:17AM +0200, Michal Hocko wrote:
[...]
> > > /*
> > > + * A safe variant of __get_user for for use_mm() users to have a
> > > + * gurantee that the address space wasn't reaped in the background
> > > + */
> > > +#define __get_user_mm(mm, x, ptr) \
> > > +({ \
> > > + int ___gu_err = __get_user(x, ptr); \
> > > + if (!___gu_err && test_bit(MMF_UNSTABLE, &mm->flags)) \
> >
> > test_bit is somewhat expensive. See my old mail
> > x86/bitops: implement __test_bit
>
> Do you have a msg_id?
Found it
http://lkml.kernel.org/r/1440776707-22016-1-git-send-email-mst@redhat.com
--
Michal Hocko
SUSE Labs
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH] vhost, mm: make sure that oom_reaper doesn't reap memory read by vhost Michal Hocko <mhocko@kernel.org> - 2016-06-17 11:10 +0200
Re: [RFC PATCH] vhost, mm: make sure that oom_reaper doesn't reap memory read by vhost "Michael S. Tsirkin" <mst@redhat.com> - 2016-06-18 02:10 +0200
Re: [RFC PATCH] vhost, mm: make sure that oom_reaper doesn't reap memory read by vhost Michal Hocko <mhocko@kernel.org> - 2016-06-19 23:40 +0200
Re: [RFC PATCH] vhost, mm: make sure that oom_reaper doesn't reap memory read by vhost Michal Hocko <mhocko@kernel.org> - 2016-06-20 00:00 +0200
Re: [RFC PATCH] vhost, mm: make sure that oom_reaper doesn't reap memory read by vhost Michal Hocko <mhocko@kernel.org> - 2016-06-20 11:40 +0200
csiph-web