LKML Archive on
help / color / mirror / Atom feed
From: Boris Ostrovsky <>
To: Juergen Gross <>,,
Cc: Stefano Stabellini <>,
	Jan Beulich <>
Subject: Re: [PATCH] xen/balloon: use a kernel thread instead a workqueue
Date: Wed, 8 Sep 2021 12:05:24 -0400	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On 9/8/21 11:11 AM, Juergen Gross wrote:
> On 08.09.21 16:47, Boris Ostrovsky wrote:
>> Given that wait_event_interruptible_timeout() is a bunch of nested macros do we need to worry here about overly aggressive compiler optimizing out 'credit = current_credit()'?
> I don't think so. current_credit() is reading from balloon_stats, which
> is a global variable. So the compiler shouldn't assume the contents
> won't change.

Ah, ok --- good point. Then I guess we should be fine.

Reviewed-by: Boris Ostrovsky <>

> But I can add a barrier() after 'credit = current_credit()' in case
> you'd feel uneasy without it.
> Juergen

      reply	other threads:[~2021-09-08 16:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-27 12:32 Juergen Gross
2021-09-08 14:47 ` Boris Ostrovsky
2021-09-08 15:11   ` Juergen Gross
2021-09-08 16:05     ` Boris Ostrovsky [this message]

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] xen/balloon: use a kernel thread instead a workqueue' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).