[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/14] block/nbd: nbd_co_establish_connection_cancel(): rename wa
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH 13/14] block/nbd: nbd_co_establish_connection_cancel(): rename wake to do_wake |
Date: |
Wed, 7 Apr 2021 13:46:36 +0300 |
Rename local variable to look like do_free in same function and like
do_wake and do_free in connect_thread_cb
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
block/nbd.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/block/nbd.c b/block/nbd.c
index f0319d2256..9cee5b6650 100644
--- a/block/nbd.c
+++ b/block/nbd.c
@@ -501,7 +501,7 @@ static void
nbd_co_establish_connection_cancel(BlockDriverState *bs,
{
BDRVNBDState *s = bs->opaque;
NBDConnectCB *thr = s->connect_thread;
- bool wake = false;
+ bool do_wake = false;
bool do_free = false;
qemu_mutex_lock(&thr->mutex);
@@ -510,7 +510,7 @@ static void
nbd_co_establish_connection_cancel(BlockDriverState *bs,
/* We can cancel only in running state, when bh is not yet scheduled */
if (thr->wait_connect) {
thr->wait_connect = false;
- wake = true;
+ do_wake = true;
}
if (detach) {
thr->bs = NULL;
@@ -528,7 +528,7 @@ static void
nbd_co_establish_connection_cancel(BlockDriverState *bs,
s->connect_thread = NULL;
}
- if (wake) {
+ if (do_wake) {
aio_co_wake(s->connection_co);
}
}
--
2.29.2
- Re: [PATCH 06/14] block/nbd: further segregation of connect-thread, (continued)
- [PATCH 02/14] block/nbd: nbd_co_establish_connection(): drop unused errp, Vladimir Sementsov-Ogievskiy, 2021/04/07
- [PATCH 05/14] block/nbd: rename NBDConnectThread to NBDConnectCB, Vladimir Sementsov-Ogievskiy, 2021/04/07
- [PATCH 08/14] block/nbd: move nbd connect-thread to nbd/client-connect.c, Vladimir Sementsov-Ogievskiy, 2021/04/07
- [PATCH 07/14] block/nbd: drop nbd_free_connect_thread(), Vladimir Sementsov-Ogievskiy, 2021/04/07
- [PATCH 09/14] block/nbd: NBDConnectCB: drop bh_* fields, Vladimir Sementsov-Ogievskiy, 2021/04/07
- [PATCH 10/14] block/nbd: move wait_connect field under mutex protection, Vladimir Sementsov-Ogievskiy, 2021/04/07
- [PATCH 11/14] block/nbd: refactor connect_bh(), Vladimir Sementsov-Ogievskiy, 2021/04/07
- [PATCH 12/14] block/nbd: refactor nbd_co_establish_connection, Vladimir Sementsov-Ogievskiy, 2021/04/07
- [PATCH 13/14] block/nbd: nbd_co_establish_connection_cancel(): rename wake to do_wake,
Vladimir Sementsov-Ogievskiy <=
- [PATCH 14/14] block/nbd: drop thr->state, Vladimir Sementsov-Ogievskiy, 2021/04/07
- DROP THIS Re: [PATCH 00/14] nbd: move reconnect-thread to separate file, Vladimir Sementsov-Ogievskiy, 2021/04/08