qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 3d6926: qemu-coroutine-sleep: introduce qemu_


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 3d6926: qemu-coroutine-sleep: introduce qemu_co_sleep_wake
Date: Wed, 23 Oct 2019 09:58:06 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 3d692649d1702f9cbd00eca8542384f85663b9c7
      
https://github.com/qemu/qemu/commit/3d692649d1702f9cbd00eca8542384f85663b9c7
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-10-22 (Tue, 22 Oct 2019)

  Changed paths:
    M include/qemu/coroutine.h
    M util/qemu-coroutine-sleep.c

  Log Message:
  -----------
  qemu-coroutine-sleep: introduce qemu_co_sleep_wake

Introduce a function to gracefully wake a coroutine sleeping in
qemu_co_sleep_ns().

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Reviewed-by: Kevin Wolf <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Eric Blake <address@hidden>


  Commit: f7651539d80b3490207e94a494aa4b9b255edfdf
      
https://github.com/qemu/qemu/commit/f7651539d80b3490207e94a494aa4b9b255edfdf
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-10-22 (Tue, 22 Oct 2019)

  Changed paths:
    M block/nbd.c

  Log Message:
  -----------
  block/nbd: nbd reconnect

Implement reconnect. To achieve this:

1. add new modes:
   connecting-wait: means, that reconnecting is in progress, and there
     were small number of reconnect attempts, so all requests are
     waiting for the connection.
   connecting-nowait: reconnecting is in progress, there were a lot of
     attempts of reconnect, all requests will return errors.

   two old modes are used too:
   connected: normal state
   quit: exiting after fatal error or on close

Possible transitions are:

   * -> quit
   connecting-* -> connected
   connecting-wait -> connecting-nowait (transition is done after
                      reconnect-delay seconds in connecting-wait mode)
   connected -> connecting-wait

2. Implement reconnect in connection_co. So, in connecting-* mode,
    connection_co, tries to reconnect unlimited times.

3. Retry nbd queries on channel error, if we are in connecting-wait
    state.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Eric Blake <address@hidden>


  Commit: 23ee0ec2360b51619cae452c4faa8590dea74a6e
      
https://github.com/qemu/qemu/commit/23ee0ec2360b51619cae452c4faa8590dea74a6e
  Author: Vladimir Sementsov-Ogievskiy <address@hidden>
  Date:   2019-10-22 (Tue, 22 Oct 2019)

  Changed paths:
    A tests/qemu-iotests/264
    A tests/qemu-iotests/264.out
    M tests/qemu-iotests/group
    M tests/qemu-iotests/iotests.py

  Log Message:
  -----------
  iotests: test nbd reconnect

Add test, which starts backup to nbd target and restarts nbd server
during backup.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Eric Blake <address@hidden>


  Commit: f78398bfe544db81a974825b0a2aa826f6576414
      
https://github.com/qemu/qemu/commit/f78398bfe544db81a974825b0a2aa826f6576414
  Author: Peter Maydell <address@hidden>
  Date:   2019-10-23 (Wed, 23 Oct 2019)

  Changed paths:
    M block/nbd.c
    M include/qemu/coroutine.h
    A tests/qemu-iotests/264
    A tests/qemu-iotests/264.out
    M tests/qemu-iotests/group
    M tests/qemu-iotests/iotests.py
    M util/qemu-coroutine-sleep.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2019-10-22' into 
staging

nbd patches for 2019-10-22

- add ability for NBD client reconnect

# gpg: Signature made Wed 23 Oct 2019 02:53:08 BST
# gpg:                using RSA key 71C2CC22B1C4602927D2F3AAA7A16B4A2527436A
# gpg: Good signature from "Eric Blake <address@hidden>" [full]
# gpg:                 aka "Eric Blake (Free Software Programmer) 
<address@hidden>" [full]
# gpg:                 aka "[jpeg image of size 6874]" [full]
# Primary key fingerprint: 71C2 CC22 B1C4 6029 27D2  F3AA A7A1 6B4A 2527 436A

* remotes/ericb/tags/pull-nbd-2019-10-22:
  iotests: test nbd reconnect
  block/nbd: nbd reconnect
  qemu-coroutine-sleep: introduce qemu_co_sleep_wake

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/69717d0f890e...f78398bfe544



reply via email to

[Prev in Thread] Current Thread [Next in Thread]