Commit 601f9b64 authored by Andrea Parri (Microsoft)'s avatar Andrea Parri (Microsoft) Committed by sanglipeng1
Browse files

Drivers: hv: vmbus: Drop error message when 'No request id available'

stable inclusion
from stable-v5.10.213
commit 82a62478b9f75ed208c4f732d210498a7d3fbfd1
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAI4UL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=82a62478b9f75ed208c4f732d210498a7d3fbfd1



--------------------------------

[ Upstream commit 0c85c54b ]

Running out of request IDs on a channel essentially produces the same
effect as running out of space in the ring buffer, in that -EAGAIN is
returned.  The error message in hv_ringbuffer_write() should either be
dropped (since we don't output a message when the ring buffer is full)
or be made conditional/debug-only.

Suggested-by: default avatarMichael Kelley <mikelley@microsoft.com>
Signed-off-by: default avatarAndrea Parri (Microsoft) <parri.andrea@gmail.com>
Fixes: e8b7db38 ("Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening")
Link: https://lore.kernel.org/r/20210301191348.196485-1-parri.andrea@gmail.com


Signed-off-by: default avatarWei Liu <wei.liu@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng1 <sanglipeng1@jd.com>
parent a574bb70
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -326,7 +326,6 @@ int hv_ringbuffer_write(struct vmbus_channel *channel,
		rqst_id = vmbus_next_request_id(&channel->requestor, requestid);
		if (rqst_id == VMBUS_RQST_ERROR) {
			spin_unlock_irqrestore(&outring_info->ring_lock, flags);
			pr_err("No request id available\n");
			return -EAGAIN;
		}
	}