Use list_entry() rather than container_of() for nodes of doubly linked
lists.
Semantic patch used:
@a exists@
identifier var;
struct list_head *ptr;
@@
  var =
- container_of
+ list_entry
  (ptr, ...);
Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        node = kiblnd_pool_alloc_node(&tps->tps_poolset);
        if (!node)
                return NULL;
-       tx = container_of(node, kib_tx_t, tx_list);
+       tx = list_entry(node, kib_tx_t, tx_list);
 
        LASSERT(!tx->tx_nwrq);
        LASSERT(!tx->tx_queued);