qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: dave@treblig.org, pavel.dovgaluk@ispras.ru, pbonzini@redhat.com,
	qemu-devel@nongnu.org, QEMU Trivial <qemu-trivial@nongnu.org>
Subject: Re: [PATCH] replay: Remove unused replay_disable_events
Date: Wed, 2 Oct 2024 12:41:44 +0200	[thread overview]
Message-ID: <31578ca3-4819-463a-85ba-d12aa784e377@redhat.com> (raw)
In-Reply-To: <20240918234005.466999-1-dave@treblig.org>

On 19/09/2024 01.40, dave@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <dave@treblig.org>
> 
> replay_disable_events has been unused since 2019's
>    c8aa7895eb ("replay: don't drain/flush bdrv queue while RR is working")
> 
> Remove it.
> 
> Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
> ---
>   include/sysemu/replay.h | 2 --
>   replay/replay-events.c  | 9 ---------
>   2 files changed, 11 deletions(-)
> 
> diff --git a/include/sysemu/replay.h b/include/sysemu/replay.h
> index 8102fa54f0..cba74fa9bc 100644
> --- a/include/sysemu/replay.h
> +++ b/include/sysemu/replay.h
> @@ -117,8 +117,6 @@ void replay_async_events(void);
>   
>   /* Asynchronous events queue */
>   
> -/*! Disables storing events in the queue */
> -void replay_disable_events(void);
>   /*! Enables storing events in the queue */
>   void replay_enable_events(void);
>   /*! Returns true when saving events is enabled */
> diff --git a/replay/replay-events.c b/replay/replay-events.c
> index af0721cc1a..2e46eda6bf 100644
> --- a/replay/replay-events.c
> +++ b/replay/replay-events.c
> @@ -92,15 +92,6 @@ void replay_flush_events(void)
>       }
>   }
>   
> -void replay_disable_events(void)
> -{
> -    if (replay_mode != REPLAY_MODE_NONE) {
> -        events_enabled = false;
> -        /* Flush events queue before waiting of completion */
> -        replay_flush_events();
> -    }
> -}
> -
>   /*! Adds specified async event to the queue */
>   void replay_add_event(ReplayAsyncEventKind event_kind,
>                         void *opaque,

Reviewed-by: Thomas Huth <thuth@redhat.com>



      parent reply	other threads:[~2024-10-02 10:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-18 23:40 [PATCH] replay: Remove unused replay_disable_events dave
2024-09-19  4:59 ` Pavel Dovgalyuk
2024-10-02 10:41 ` Thomas Huth [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:
  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=31578ca3-4819-463a-85ba-d12aa784e377@redhat.com \
    --to=thuth@redhat.com \
    --cc=dave@treblig.org \
    --cc=pavel.dovgaluk@ispras.ru \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    /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 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).