Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1426045

Re: [RFC PATCH] vhost, mm: make sure that oom_reaper doesn't reap memory read by vhost

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 2016-06-20 00:00 +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>
Organization linux.* mail to news gateway

Show all headers | 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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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