aboutsummaryrefslogtreecommitdiff
path: root/util/crc-ccitt.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2023-12-21 14:24:50 -0500
committerKevin Wolf <kwolf@redhat.com>2023-12-21 21:59:03 +0100
commitefade66d5872e3bfb906944105145007ff2e26a3 (patch)
treea9b443e6635bb24d76512a08cc6659467c58ef3d /util/crc-ccitt.c
parent191710c221f65b1542f6ea7fa4d30dde6e134fd7 (diff)
nbd/server: avoid per-NBDRequest nbd_client_get/put()
nbd_trip() processes a single NBD request from start to finish and holds an NBDClient reference throughout. NBDRequest does not outlive the scope of nbd_trip(). Therefore it is unnecessary to ref/unref NBDClient for each NBDRequest. Removing these nbd_client_get()/nbd_client_put() calls will make thread-safety easier in the commits that follow. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-ID: <20231221192452.1785567-5-stefanha@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'util/crc-ccitt.c')
0 files changed, 0 insertions, 0 deletions