]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/cm: Drop lockdep assert and WARN when freeing old msg
authorVlad Dumitrescu <vdumitrescu@nvidia.com>
Mon, 28 Apr 2025 11:30:18 +0000 (14:30 +0300)
committerLeon Romanovsky <leon@kernel.org>
Mon, 5 May 2025 15:44:12 +0000 (11:44 -0400)
commit7590649ee7af381a9d1153143026dec124c5798e
tree734bf4d03f7334d4a9c10d240a4c6198d327eb08
parent3db60cf9b7da4ae35646c00d9241c44d2dd6caf8
IB/cm: Drop lockdep assert and WARN when freeing old msg

The send completion handler can run after cm_id has advanced to another
message.  The cm_id lock is not needed in this case, but a recent change
re-used cm_free_priv_msg(), which asserts that the lock is held and
WARNs if the cm_id's currently outstanding msg is different than the one
being freed.

Fixes: 1e5159219076 ("IB/cm: Do not hold reference on cm_id unless needed")
Signed-off-by: Vlad Dumitrescu <vdumitrescu@nvidia.com>
Reviewed-by: Sean Hefty <shefty@nvidia.com>
Link: https://patch.msgid.link/0c364c29142f72b7875fdeba51f3c9bd6ca863ee.1745839788.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/cm.c