[Spice-devel] [PATCH 5/8] Make malloc_sem global
Alexander Larsson
alexl at redhat.com
Mon Aug 23 01:30:58 PDT 2010
On Sun, 2010-08-22 at 14:58 +0300, Yonit Halperin wrote:
> On 08/20/2010 09:54 PM, alexl at redhat.com wrote:
> > From: Alexander Larsson<alexl at redhat.com>
> >
> > It protects shared data (mspace info) so it needs to be shared.
> > ---
>
> Don't see a problem with making it global, but not sure it is needed.
> Can alloc operations occur on an inactive pdev?
For sure things like DrvDeleteDeviceBitmap() can happen (you said above
that this will be called for all surfaces before disabling the pdev).
And DrvDeleteDeviceBitmap will eventually reach e.g. GetSurfaceCmd which
will cause an AllocMem call.
Also, this points to another issue with the malloc_sem. If ifs
protecting pdev->Res.mspaces, then we really should take it in FreeMem
too, as that calls mspace_free().
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl at redhat.com alexander.larsson at gmail.com
He's an oversexed Republican astronaut possessed of the uncanny powers of an
insect. She's a supernatural winged stripper with someone else's memories.
They fight crime!
More information about the Spice-devel
mailing list