Re: [PATCH 4/4] IB/isert: the kill ->isert_cmd back pointer in the struct iser_tx_desc

Christoph Hellwig
2016-02-17T14:19:10Z

On Wed, Feb 17, 2016 at 11:31:31AM +0200, Max Gurtovoy wrote:
> maybe we can define it once as:
> static inline struct isert_cmd *
> isert_tx_to_cmd(iser_tx_desc *tx_desc)
> {
> return container_of(tx_desc, struct isert_cmd, tx_desc);
> }
> in the .h file ?

Sure.