Thread (19 messages) 19 messages, 2 authors, 2024-09-11

Re: [PATCH mlx5-vhost v2 01/10] net/mlx5: Support throttled commands from async API

From: Dragos Tatulea <dtatulea@nvidia.com>
Date: 2024-09-11 17:05:26
Also in: kvm, lkml


On 11.09.24 10:00, Eugenio Perez Martin wrote:
On Mon, Sep 9, 2024 at 11:33 AM Dragos Tatulea [off-list ref] wrote:
quoted


On 16.08.24 11:01, Dragos Tatulea wrote:
quoted
Currently, commands that qualify as throttled can't be used via the
async API. That's due to the fact that the throttle semaphore can sleep
but the async API can't.

This patch allows throttling in the async API by using the tentative
variant of the semaphore and upon failure (semaphore at 0) returns EBUSY
to signal to the caller that they need to wait for the completion of
previously issued commands.

Furthermore, make sure that the semaphore is released in the callback.

Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Cc: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Same reminder as in v1: Tariq is the maintainer for mlx5 so his review
also counts as Acked-by.
Not sure if it was the case when you send the mail, but this series is
already in the maintainer's branch:
* https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/
* https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/commit/?h=vhost&id=691fd851e1bc8ec043798e1ab337305e6291cd6b
It wasn't. Thanks for the notice!

Thanks,
Dragos
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help