From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: "Mike D. Day" <ncmike@us.ibm.com>, xen-devel@lists.xensource.com
Subject: Re: [PATCH] Scheduling groups, credit scheduler support
Date: Mon, 17 Dec 2007 16:57:41 +0000 [thread overview]
Message-ID: <20071217165741.GT4614@implementation.uk.xensource.com> (raw)
In-Reply-To: <20071214170128.GM4296@implementation.uk.xensource.com>
Samuel Thibault, le Fri 14 Dec 2007 17:01:28 +0000, a écrit :
> Mike D. Day, le Thu 29 Nov 2007 15:19:59 -0500, a écrit :
> > +static inline struct csched_dom *get_master_dom(struct csched_dom *d)
> > +{
> > + if ( d->is_member )
> > + {
> > + if ( get_domain(d->master->dom) )
> > + return d->master;
> > + BUG();
> > + }
> > + return NULL;
> > +}
> > +
> > +static inline void rem_member_from_master(struct csched_dom *member,
> > + struct csched_dom *master)
> > +{
> > + reclaim_active_vcpus(master, member);
> > + member->is_member = 0;
> > + member->master = NULL;
> > + list_del(&member->group_elem);
> > + if (list_empty(&master->group))
> > + master->is_master = 0;
> > +}
>
> Mmm, isn't there a race condition between these, if somebody removes a
> member in the middle of somebody else calling master_dom() or
> get_master_dom()?
More precisely, there is one with SGRP_get_master, which doesn't take
the global scheduler lock before calling get_master_dom().
Samuel
next prev parent reply other threads:[~2007-12-17 16:57 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 20:19 [PATCH] Scheduling groups, credit scheduler support Mike D. Day
2007-11-29 22:36 ` Chris B
2007-12-03 15:37 ` Chris
2007-12-03 17:59 ` Mike D. Day
2007-12-04 19:32 ` Chris
2007-12-04 23:04 ` Keir Fraser
2007-12-06 16:42 ` Chris
2007-12-14 17:20 ` Samuel Thibault
2007-12-18 16:04 ` Chris
2007-12-04 10:38 ` [PATCH] " Keir Fraser
2007-12-04 13:50 ` Mike D. Day
2007-12-04 23:06 ` Keir Fraser
2007-12-14 13:35 ` Mike D. Day
2007-12-14 13:50 ` Keir Fraser
2007-12-14 16:26 ` Samuel Thibault
2007-12-14 17:36 ` Samuel Thibault
2007-12-19 16:08 ` Samuel Thibault
2007-12-14 16:49 ` Samuel Thibault
2007-12-19 20:18 ` Mike D. Day
2007-12-05 1:34 ` does xen-linux for PV support the Linux Standards base , or not ? tgh
2007-12-05 3:49 ` Mark Williamson
2007-12-14 17:01 ` [PATCH] Scheduling groups, credit scheduler support Samuel Thibault
2007-12-17 16:57 ` Samuel Thibault [this message]
2007-12-18 11:50 ` Samuel Thibault
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071217165741.GT4614@implementation.uk.xensource.com \
--to=samuel.thibault@eu.citrix.com \
--cc=ncmike@us.ibm.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.