]> asedeno.scripts.mit.edu Git - linux.git/commit
iw_cxgb4: when flushing, complete all wrs in a chain
authorSteve Wise <swise@opengridcomputing.com>
Tue, 19 Dec 2017 22:02:10 +0000 (14:02 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 21 Dec 2017 23:06:06 +0000 (16:06 -0700)
commitd14587334580bc94d3ee11e8320e0c157f91ae8f
treecde1433294bb203838d4e91da5833fa0ddc93deb
parent96a236ed286776554fbd227c6d2876fd3b5dc65d
iw_cxgb4: when flushing, complete all wrs in a chain

If a wr chain was posted and needed to be flushed, only the first
wr in the chain was completed with FLUSHED status.  The rest were
never completed.  This caused isert to hang on shutdown due to the
missing completions which left iscsi IO commands referenced, stalling
the shutdown.

Fixes: 4fe7c2962e11 ("iw_cxgb4: refactor sq/rq drain logic")
Cc: stable@vger.kernel.org
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/qp.c