All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] file-posix: Handle EINTR in preallocation=full write
@ 2018-07-27  6:53 Fam Zheng
  2018-07-27  9:07 ` Kevin Wolf
  2018-07-27  9:16 ` Fam Zheng
  0 siblings, 2 replies; 3+ messages in thread
From: Fam Zheng @ 2018-07-27  6:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Max Reitz, qemu-block

Cc: qemu-stable@nongnu.org
Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block/file-posix.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/block/file-posix.c b/block/file-posix.c
index ad299beb38..928b863ced 100644
--- a/block/file-posix.c
+++ b/block/file-posix.c
@@ -1646,6 +1646,9 @@ static int handle_aiocb_truncate(RawPosixAIOData *aiocb)
             num = MIN(left, 65536);
             result = write(fd, buf, num);
             if (result < 0) {
+                if (errno == EINTR) {
+                    continue;
+                }
                 result = -errno;
                 error_setg_errno(errp, -result,
                                  "Could not write zeros for preallocation");
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] file-posix: Handle EINTR in preallocation=full write
  2018-07-27  6:53 [Qemu-devel] [PATCH] file-posix: Handle EINTR in preallocation=full write Fam Zheng
@ 2018-07-27  9:07 ` Kevin Wolf
  2018-07-27  9:16 ` Fam Zheng
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Wolf @ 2018-07-27  9:07 UTC (permalink / raw)
  To: Fam Zheng; +Cc: qemu-devel, Max Reitz, qemu-block

Am 27.07.2018 um 08:53 hat Fam Zheng geschrieben:
> Cc: qemu-stable@nongnu.org
> Signed-off-by: Fam Zheng <famz@redhat.com>

Thanks, applied to the block branch.

Kevin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] file-posix: Handle EINTR in preallocation=full write
  2018-07-27  6:53 [Qemu-devel] [PATCH] file-posix: Handle EINTR in preallocation=full write Fam Zheng
  2018-07-27  9:07 ` Kevin Wolf
@ 2018-07-27  9:16 ` Fam Zheng
  1 sibling, 0 replies; 3+ messages in thread
From: Fam Zheng @ 2018-07-27  9:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, qemu-block, Max Reitz, qemu-stable

On Fri, 07/27 14:53, Fam Zheng wrote:
> Cc: qemu-stable@nongnu.org
> Signed-off-by: Fam Zheng <famz@redhat.com>

Actually cc qemu-stable@nongnu.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-27  9:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-27  6:53 [Qemu-devel] [PATCH] file-posix: Handle EINTR in preallocation=full write Fam Zheng
2018-07-27  9:07 ` Kevin Wolf
2018-07-27  9:16 ` Fam Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.