OSDN Git Service

nbd: trace long NBD operations
authorDenis V. Lunev <den@openvz.org>
Mon, 30 May 2022 10:39:29 +0000 (12:39 +0200)
committerVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Wed, 29 Jun 2022 07:57:02 +0000 (10:57 +0300)
commit8bb100c9e2dc1fe0e33283b0c43252dbaf4eb71b
tree50ad16f1f7a33346cf1e43825ba400b7d4b436bb
parent9d05a87b77a63ed5505c59f5e8e6c5ca4f2c04d3
nbd: trace long NBD operations

At the moment there are 2 sources of lengthy operations if configured:
* open connection, which could retry inside and
* reconnect of already opened connection
These operations could be quite lengthy and cumbersome to catch thus
it would be quite natural to add trace points for them.

This patch is based on the original downstream work made by Vladimir.

Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Eric Blake <eblake@redhat.com>
CC: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
CC: Kevin Wolf <kwolf@redhat.com>
CC: Hanna Reitz <hreitz@redhat.com>
CC: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
block/nbd.c
block/trace-events
nbd/client-connection.c
nbd/trace-events