From: Vladimir Sementsov-Ogievskiy <v.sementsov-og@mail.ru>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: eblake@redhat.com
Subject: Re: [PATCH for-7.1 0/8] nbd: actually make s->state thread-safe
Date: Tue, 12 Apr 2022 21:26:58 +0300 [thread overview]
Message-ID: <70776c6a-a171-6005-4fb6-e489534ef3b4@mail.ru> (raw)
In-Reply-To: <20220412173216.308065-1-pbonzini@redhat.com>
12.04.2022 20:32, Paolo Bonzini wrote:
> The main point of this series is patch 6, which removes the dubious and
> probably wrong use of atomics in block/nbd.c. This in turn is enabled
> mostly by the cleanups in patches 3-5. Together, they introduce a
> QemuMutex that synchronizes the NBD client coroutines, the reconnect_delay
> timer and nbd_cancel_in_flight() as well.
>
> The fixes happen to remove an incorrect use of qemu_co_queue_restart_all
> and qemu_co_enter_next on the s->free_sema CoQueue, which was not guarded
> by s->send_mutex.
>
> The rest is bugfixes, simplifying the code a bit, and extra documentation.
>
> Paolo Bonzini (8):
> nbd: actually implement reply_possible safeguard
> nbd: mark more coroutine_fns
> nbd: remove peppering of nbd_client_connected
> nbd: keep send_mutex/free_sema handling outside
> nbd_co_do_establish_connection
> nbd: use a QemuMutex to synchronize reconnection with coroutines
> nbd: move s->state under requests_lock
> nbd: take receive_mutex when reading requests[].receiving
> nbd: document what is protected by the CoMutexes
>
> block/coroutines.h | 4 +-
> block/nbd.c | 303 +++++++++++++++++++++++----------------------
> 2 files changed, 157 insertions(+), 150 deletions(-)
>
Hmm, no patches come to me except for cover-letter. Neither here: https://patchew.org/QEMU/20220412173216.308065-1-pbonzini@redhat.com/
--
Best regards,
Vladimir
next prev parent reply other threads:[~2022-04-12 18:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-12 17:32 [PATCH for-7.1 0/8] nbd: actually make s->state thread-safe Paolo Bonzini
2022-04-12 18:26 ` Vladimir Sementsov-Ogievskiy [this message]
2022-04-13 7:30 ` Paolo Bonzini
-- strict thread matches above, loose matches on Subject: below --
2022-04-12 19:41 Paolo Bonzini
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=70776c6a-a171-6005-4fb6-e489534ef3b4@mail.ru \
--to=v.sementsov-og@mail.ru \
--cc=eblake@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@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).