net: ipa: kill the allocated transaction list
authorAlex Elder <elder@linaro.org>
Tue, 6 Sep 2022 17:19:39 +0000 (12:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Sep 2022 10:45:25 +0000 (11:45 +0100)
commit11902b41f2fa3960280b3a3b17474caa22b54cba
tree6af3d8da2b70834e337638795b6254cd85be5f7b
parent0c126ec3ddcc81448315e73d196a5a2f42cfd6b4
net: ipa: kill the allocated transaction list

The only place the trans_info->alloc list is used is when
initializing it, when adding a transaction to it when allocation
finishes, and when moving a transaction from that list to the
committed list.

We can just skip putting a transaction on the allocated list, and
add it (rather than move it) to the committed list when it is
committed.

On additional caveat is that an allocated transaction that's
committed without any TREs added will be immediately freed.  Because
we aren't adding allocated transactions to a list any more, the
list links need to be initialized to ensure they're valid at the
time list_del() is called for the transaction.

Then we can safely eliminate the allocated transaction list.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/gsi.h
drivers/net/ipa/gsi_trans.c