* [Qemu-devel] [PATCH] nbd: Fix trace message for disconnect
@ 2017-08-11 1:57 Eric Blake
2017-08-11 10:32 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Eric Blake @ 2017-08-11 1:57 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, open list:Network Block Dev...
NBD_CMD_DISC is a disconnect request, not a data discard request.
Signed-off-by: Eric Blake <eblake@redhat.com>
---
Although this is not 2.10 material in isolation (it is only a
bad trace message), I don't mind including it in a larger pull
request; I'm still planning to fix the issue of a client hanging
on a malicious server in time for -rc3 (whether via Vladimir's
patch or a smaller one that I'm testing locally).
nbd/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nbd/common.c b/nbd/common.c
index a2f28f2eec..e288d1b972 100644
--- a/nbd/common.c
+++ b/nbd/common.c
@@ -182,7 +182,7 @@ const char *nbd_cmd_lookup(uint16_t cmd)
case NBD_CMD_WRITE:
return "write";
case NBD_CMD_DISC:
- return "discard";
+ return "disconnect";
case NBD_CMD_FLUSH:
return "flush";
case NBD_CMD_TRIM:
--
2.13.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [Qemu-block] [PATCH] nbd: Fix trace message for disconnect
2017-08-11 1:57 [Qemu-devel] [PATCH] nbd: Fix trace message for disconnect Eric Blake
@ 2017-08-11 10:32 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2017-08-11 10:32 UTC (permalink / raw)
To: Eric Blake; +Cc: qemu-devel, Paolo Bonzini, open list:Network Block Dev...
[-- Attachment #1: Type: text/plain, Size: 644 bytes --]
On Thu, Aug 10, 2017 at 08:57:48PM -0500, Eric Blake wrote:
> NBD_CMD_DISC is a disconnect request, not a data discard request.
>
> Signed-off-by: Eric Blake <eblake@redhat.com>
> ---
>
> Although this is not 2.10 material in isolation (it is only a
> bad trace message), I don't mind including it in a larger pull
> request; I'm still planning to fix the issue of a client hanging
> on a malicious server in time for -rc3 (whether via Vladimir's
> patch or a smaller one that I'm testing locally).
>
> nbd/common.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-11 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-11 1:57 [Qemu-devel] [PATCH] nbd: Fix trace message for disconnect Eric Blake
2017-08-11 10:32 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).