]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gve: Add adminq mutex lock
authorZiwei Xiao <ziweixiao@google.com>
Tue, 25 Jun 2024 00:12:27 +0000 (00:12 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Jun 2024 00:48:33 +0000 (17:48 -0700)
commit1108566ca509e67aa8abfbf914b1cd31e9ff51f8
tree914d0e31c5f77802d5dedbe2719e4fb2e6ee94d0
parent63173885ccb253ff76e1da5cb148d1ca4b69a019
gve: Add adminq mutex lock

We were depending on the rtnl_lock to make sure there is only one adminq
command running at a time. But some commands may take too long to hold
the rtnl_lock, such as the upcoming flow steering operations. For such
situations, it can temporarily drop the rtnl_lock, and replace it for
these operations with a new adminq lock, which can ensure the adminq
command execution to be thread-safe.

Signed-off-by: Ziwei Xiao <ziweixiao@google.com>
Reviewed-by: Praveen Kaligineedi <pkaligineedi@google.com>
Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20240625001232.1476315-2-ziweixiao@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve.h
drivers/net/ethernet/google/gve/gve_adminq.c