From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Philipp Reisner <philipp.reisner@linbit.com>,
qemu-devel@nongnu.org, qemu-block <qemu-block@nongnu.org>
Cc: Fabiano Rosas <farosas@suse.de>, Peter Xu <peterx@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
David Hildenbrand <david@redhat.com>
Subject: Re: [PATCH v3] util: use RETRY_ON_EINTR() on open() more consistently
Date: Thu, 1 Aug 2024 14:48:25 +0200 [thread overview]
Message-ID: <8524dc6f-51a0-4fbe-88d5-47a662e674b5@linaro.org> (raw)
In-Reply-To: <20240731151714.326879-1-philipp.reisner@linbit.com>
Hi Philipp,
On 31/7/24 17:17, Philipp Reisner wrote:
> As with many syscalls, open() might be interrupted by a signal.
>
> The call trace
> img_open_file()
> blk_new_open()
> raw_open()
> raw_open_common()
> qemu_open()
> qemu_open_internal()
> qemu_open_cloexec()
>
> Ended up in calling open() without a retry loop around it.
>
> The experienced logfile entry is:
> qemu-system-x86_64: -device virtio-blk-pci,bus=pci.0,addr=0x7,drive=libvirt-2-format,id=virtio-disk0,bootindex=2,write-cache=on,serial=1b990c4d13b74a4e90ea: Could not open '/dev/drbd1003': Interrupted system call
>
> Add the RETRY_ON_EINTR() in qemu_open_cloexec() and remove it on
> call-sites using qemu_open_old().
>
> Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
> ---
> chardev/char-fd.c | 2 +-
> chardev/char-pipe.c | 4 ++--
> os-posix.c | 2 +-
> util/osdep.c | 4 ++--
> 4 files changed, 6 insertions(+), 6 deletions(-)
If you need to repost, please set the next version in your patch
(which will be v4). Also avoid replying to previous version /
discussions and your patch could be missed, see
https://www.qemu.org/docs/master/devel/submitting-a-patch.html#when-resending-patches-add-a-version-tag:
Send each new revision as a new top-level thread, rather than
burying it in-reply-to an earlier revision, as many reviewers
are not looking inside deep threads for new patches.
Also please Cc qemu-block@nongnu.org since the block layer is
involved via the blk_new_open() call.
Regards,
Phil.
next prev parent reply other threads:[~2024-08-01 12:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-31 13:25 [PATCH] util: retry open() when it gets interrupted by a signal Philipp Reisner
2024-07-31 14:00 ` David Hildenbrand
2024-07-31 14:10 ` Daniel P. Berrangé
2024-07-31 14:32 ` Peter Maydell
2024-07-31 14:49 ` Philipp Reisner
2024-07-31 15:17 ` [PATCH] util: use RETRY_ON_EINTR() on open() more consistently Philipp Reisner
2024-08-01 12:48 ` Philippe Mathieu-Daudé [this message]
2024-08-02 7:26 ` [PATCH v3] " Philipp Reisner
2024-07-31 15:21 ` [PATCH] util: retry open() when it gets interrupted by a signal Daniel P. Berrangé
2024-07-31 15:24 ` Peter Maydell
2024-07-31 15:34 ` Daniel P. Berrangé
2024-07-31 15:34 ` Philipp Reisner
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=8524dc6f-51a0-4fbe-88d5-47a662e674b5@linaro.org \
--to=philmd@linaro.org \
--cc=david@redhat.com \
--cc=farosas@suse.de \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=philipp.reisner@linbit.com \
--cc=qemu-block@nongnu.org \
--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).