From: Roman Kagan <rvkagan@yandex-team.ru>
To: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
qemu-devel@nongnu.org, qemu-block@nongnu.org,
Max Reitz <mreitz@redhat.com>
Subject: Re: [PATCH 0/3] block/nbd: fix crashers in reconnect while migrating
Date: Fri, 29 Jan 2021 10:35:27 +0300 [thread overview]
Message-ID: <20210129073527.GC3053@rvkaganb.lan> (raw)
In-Reply-To: <7555daaf-1e1b-1ef7-a5d1-24d98a18599d@virtuozzo.com>
On Fri, Jan 29, 2021 at 08:51:39AM +0300, Vladimir Sementsov-Ogievskiy wrote:
> 28.01.2021 23:14, Roman Kagan wrote:
> > During the final phase of migration the NBD reconnection logic may
> > encounter situations it doesn't expect during regular operation.
> >
> > This series addresses some of them that make qemu crash. They are
> > reproducible when a vm with a secondary drive attached via nbd with
> > non-zero "reconnect-delay" runs a stress load (fio with big queue depth)
> > in the guest on that drive and is migrated (e.g. to a file), while the
> > nbd server is SIGKILL-ed and restarted every second.
> >
> > See the individual patches for specific crash conditions and more
> > detailed explanations.
> >
> > Roman Kagan (3):
> > block/nbd: only detach existing iochannel from aio_context
> > block/nbd: only enter connection coroutine if it's present
> > nbd: make nbd_read* return -EIO on error
> >
> > include/block/nbd.h | 7 ++++---
> > block/nbd.c | 25 +++++++++++++++++--------
> > 2 files changed, 21 insertions(+), 11 deletions(-)
> >
>
> Thanks a lot for fixing!
>
> Do you have some reproducer scripts? Could you post them or may be add
> an iotest?
I don't have it scripted, just ad hoc command lines. I'll look into
making up a test. Can you perhaps suggest what existing test to base
on?
Thanks,
Roman.
next prev parent reply other threads:[~2021-01-29 7:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-28 20:14 [PATCH 0/3] block/nbd: fix crashers in reconnect while migrating Roman Kagan
2021-01-28 20:14 ` [PATCH 1/3] block/nbd: only detach existing iochannel from aio_context Roman Kagan
2021-01-29 5:37 ` Vladimir Sementsov-Ogievskiy
2021-01-29 7:03 ` Roman Kagan
2021-01-28 20:14 ` [PATCH 2/3] block/nbd: only enter connection coroutine if it's present Roman Kagan
2021-01-29 5:40 ` Vladimir Sementsov-Ogievskiy
2021-01-28 20:14 ` [PATCH 3/3] nbd: make nbd_read* return -EIO on error Roman Kagan
2021-01-29 5:48 ` Vladimir Sementsov-Ogievskiy
2021-01-29 5:51 ` [PATCH 0/3] block/nbd: fix crashers in reconnect while migrating Vladimir Sementsov-Ogievskiy
2021-01-29 7:35 ` Roman Kagan [this message]
2021-01-29 8:19 ` Vladimir Sementsov-Ogievskiy
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=20210129073527.GC3053@rvkaganb.lan \
--to=rvkagan@yandex-team.ru \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@virtuozzo.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 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).