]> git.baikalelectronics.ru Git - kernel.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)
commit374ab0fd7674b16b56e2de53ecd0e4ae25071094
treecde1433294bb203838d4e91da5833fa0ddc93deb
parentf10bfe23d658b4d1a5122d3fe4e80debb27fef84
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: 954528313bc6 ("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