Patch "Drivers: hv: vmbus: Drop error message when 'No request id available'" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

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

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drivers-hv-vmbus-drop-error-message-when-no-request-.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit fa8553d3a820c2eb5fe34180444ba299b6087594
Author: Andrea Parri (Microsoft) <parri.andrea@xxxxxxxxx>
Date:   Mon Mar 1 20:13:48 2021 +0100

    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@xxxxxxxxxxxxx>
    Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@xxxxxxxxx>
    Fixes: e8b7db38449ac ("Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening")
    Link: https://lore.kernel.org/r/20210301191348.196485-1-parri.andrea@xxxxxxxxx
    Signed-off-by: Wei Liu <wei.liu@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c
index a0ba6ac487368..a49cc69c56af0 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;
 		}
 	}




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux