diff options
| author | Andrea Parri (Microsoft) <parri.andrea@gmail.com> | 2021-03-01 20:13:48 +0100 |
|---|---|---|
| committer | Sasha Levin <sashal@kernel.org> | 2024-03-15 10:48:22 -0400 |
| commit | 82a62478b9f75ed208c4f732d210498a7d3fbfd1 (patch) | |
| tree | 98974d66ee24ab047407ed62ba972d9732479b12 | |
| parent | 74d83d0fe04e08fd3389ca201d0f885b3e3fed3c (diff) | |
| download | linux-82a62478b9f75ed208c4f732d210498a7d3fbfd1.tar.gz linux-82a62478b9f75ed208c4f732d210498a7d3fbfd1.tar.bz2 linux-82a62478b9f75ed208c4f732d210498a7d3fbfd1.zip | |
Drivers: hv: vmbus: Drop error message when 'No request id available'
[ Upstream commit 0c85c54bf7faeb80c6b76901ed77d93acef0207d ]
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: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Fixes: e8b7db38449ac ("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: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
| -rw-r--r-- | drivers/hv/ring_buffer.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c index a0ba6ac48736..a49cc69c56af 100644 --- a/drivers/hv/ring_buffer.c +++ b/drivers/hv/ring_buffer.c @@ -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; } } |
