[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e6dcce7e-acfb-0ca1-8ff1-e303932bc3c5@suse.com>
Date: Thu, 22 Oct 2020 09:55:58 +0200
From: Jan Beulich <jbeulich@...e.com>
To: Juergen Gross <jgross@...e.com>
Cc: xen-devel@...ts.xenproject.org, linux-kernel@...r.kernel.org,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
Stefano Stabellini <sstabellini@...nel.org>
Subject: Re: [PATCH 4/5] xen/events: unmask a fifo event channel only if it
was masked
On 22.10.2020 09:42, Juergen Gross wrote:
> --- a/drivers/xen/events/events_fifo.c
> +++ b/drivers/xen/events/events_fifo.c
> @@ -236,6 +236,9 @@ static bool clear_masked_cond(volatile event_word_t *word)
>
> w = *word;
>
> + if (!(w & (1 << EVTCHN_FIFO_MASKED)))
> + return true;
Maybe better move this ...
> do {
> if (w & (1 << EVTCHN_FIFO_PENDING))
> return false;
>
... into the loop, above this check?
Jan
Powered by blists - more mailing lists