Skip to content

nbd refactoring part 2

Vladimir Sementsov-Ogievskiy qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 9 repliesIn review
  2. v2 posting 2/26 patches 21 repliesSuperseded
  3. v2 posting 1/212 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v112 patches10 repliesSuperseded

Changes in v3 from the cover letter

01: reword commit message
add Eric's r-b
s/legal/value/
02: new patch (proposed by Eric)
03: rebased on 02
04,05: add Eric's r-b
06: do not remove extra empty line
do not add additional var nbd_magic (reuse existent magic) use ldq_be_p to reduce memory copying
07,08: new patches
09: new patch, split out 'behavior changing' part of 09, apply most of
comments by Eric and Max, some other changes
10: rebased on 08, now more 'mechanical', may be some changes in text
messages of traces are left here.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10nbd/server: nbd_negotiate: return 1 on NBD_OPT_ABORTnbd/server.c+15 -50 replies
2/10nbd/server: refactor nbd_negotiatenbd/server.c+3 -91 reply
3/10nbd/server: use errp instead of LOGnbd/server.c+160 -1061 reply
4/10nbd/server: add errp to nbd_send_reply()nbd/server.c+9 -80 replies
5/10nbd/common: nbd_tls_handshake: remove extra TRACEnbd/common.c+1 -30 replies
6/10nbd/client: refactor TRACE of NBD_MAGICnbd/client.c+2 -91 reply
7/10nbd/server: fix TRACE in nbd_negotiate_send_rep_lennbd/server.c+1 -11 reply
8/10nbd/server: rename clientflags var in nbd_negotiate_optionsnbd/server.c+19 -191 reply
9/10nbd: refactor tracingnbd/client.c nbd/server.c+9 -241 reply
10/10nbd: use generic trace subsystem instead of TRACE macroMakefile.objs nbd/client.c nbd/nbd-internal.h +2 more+121 -943 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 00/10] nbd refactoring part 2

This is last part of "nbd errors and traces refactoring".

Patches 01-10 from "nbd errors and traces refactoring" are already merged. Patches 11-13 from it are rejected - do not regret them.
So, these series is update of 14-19 patches from "nbd errors and traces refactoring"

v3:
01: reword commit message
add Eric's r-b
s/legal/value/
02: new patch (proposed by Eric)
03: rebased on 02
04,05: add Eric's r-b
06: do not remove extra empty line
do not add additional var nbd_magic (reuse existent magic) use ldq_be_p to reduce memory copying
07,08: new patches
09: new patch, split out 'behavior changing' part of 09, apply most of
comments by Eric and Max, some other changes
10: rebased on 08, now more 'mechanical', may be some changes in text
messages of traces are left here.

v2:
01: EPIPE not handled
imporve comments
02: rebased on absence of old patch 13, errors are not saved into
separate ret variable
TRACE on fail of sending NBD_REP_ACK reply to NBD_OPT_ABORT instead of error propagating and EPIPE handling
03: fix error_prepend
04: just remove this TRACE
05: just trace nbd magic as 64bit number
06: improve commit message
simplify trace_nbd_receive_negotiate_server_flags - do not trace separate flags
add trace_nbd_opt_abort_reply_failed
remove tail periods from traces

Vladimir Sementsov-Ogievskiy (10):
nbd/server: nbd_negotiate: return 1 on NBD_OPT_ABORT nbd/server: refactor nbd_negotiate
nbd/server: use errp instead of LOG
nbd/server: add errp to nbd_send_reply() nbd/common: nbd_tls_handshake: remove extra TRACE nbd/client: refactor TRACE of NBD_MAGIC nbd/server: fix TRACE in nbd_negotiate_send_rep_len nbd/server: rename clientflags var in nbd_negotiate_options
nbd: refactor tracing
nbd: use generic trace subsystem instead of TRACE macro

 Makefile.objs      |   1 +
 nbd/client.c       |  82 +++++------
 nbd/common.c       |   4 +-
 nbd/nbd-internal.h |  19 ---
 nbd/server.c       | 398 +++++++++++++++++++++++++++++------------------------
 nbd/trace-events   |  58 ++++++++
 6 files changed, 312 insertions(+), 250 deletions(-)
 create mode 100644 nbd/trace-events
Signature · 1 line
2.11.1