iser-target: Kill the ->isert_cmd back pointer in struct iser_tx_desc
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Feb 2016 17:24:08 +0000 (19:24 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Mar 2016 05:48:51 +0000 (21:48 -0800)
commite3416ab2d156ac0f0a3d9e55bcdff69d109ba403
treeabc1e7af66e75c2b69f35d79756fa45dc5ec9ca7
parentd1ca2ed7dcf859dcb7fc642d4d3ed42c1693d20c
iser-target: Kill the ->isert_cmd back pointer in struct iser_tx_desc

We only use the pointer when processing regular iSER commands, and it then
always points to the struct iser_cmd that contains the TX descriptor.

Remove it and rely on container_of to save a little space and avoid a
pointer that is updated multiple times per processed command.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/infiniband/ulp/isert/ib_isert.h