[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090625131633.GA7221@redhat.com>
Date: Thu, 25 Jun 2009 16:16:33 +0300
From: "Michael S. Tsirkin" <mst@...hat.com>
To: Gregory Haskins <ghaskins@...ell.com>
Cc: avi@...hat.com, kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
mtosatti@...hat.com, paulmck@...ux.vnet.ibm.com, markmc@...hat.com
Subject: Re: [PATCH] kvm: remove in_range from kvm_io_device
On Thu, Jun 25, 2009 at 09:02:28AM -0400, Gregory Haskins wrote:
> > Here's what I have in mind:
> > kvm does
> > lock
> > dev = find
> > unlock
> >
> > <---------- at this point group device is removed
> >
> > write access to device that has been removed
> >
> >
> >
>
> Hmm...you are right. This looks like it was introduced with that recent
> locking patch you cited. Well, I can still fix it now easily by putting
> an rcu-read-lock around the access. Longer term we should move to
> srcu. Thoughts?
>
> -Greg
>
Some callbacks take kvm mutex lock. So it seems rcu won't work,
we need srcu.
--
MST
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists