Commit 4d8996cb authored by Alex Elder's avatar Alex Elder Committed by Jakub Kicinski
Browse files

net: ipa: skip some cleanup for unused transactions



In gsi_trans_free(), there's no point in ipa_gsi_trans_release() if
a transaction is unused.  No used TREs means no IPA layer resources
to clean up.  So only call ipa_gsi_trans_release() if at least one
TRE was used.

Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 49200658
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -404,6 +404,7 @@ void gsi_trans_free(struct gsi_trans *trans)
	if (!last)
		return;

	if (trans->used_count)
		ipa_gsi_trans_release(trans);

	/* Releasing the reserved TREs implicitly frees the sgl[] and