]> git.baikalelectronics.ru Git - kernel.git/commit
iw_cxgb4: block module unload until all ep resources are released
authorSteve Wise <swise@opengridcomputing.com>
Thu, 1 Sep 2016 13:44:52 +0000 (06:44 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Sun, 4 Sep 2016 07:00:53 +0000 (10:00 +0300)
commitfd6e6ff26e130e536a3368520bc2b95966eb9ced
tree449dbb5e7f983af2ce20207a6fa4db4decc233df
parentf3f0bf0c908d87094afc13cd9e94124e1ea01404
iw_cxgb4: block module unload until all ep resources are released

Otherwise an endpoint can be still closing down causing a touch
after free crash.  Also WARN_ON if ulps have failed to destroy
various resources during device removal.

Fixes: 4709f8c0c32d ("iw_cxgb4: don't block in destroy_qp awaiting the last deref")
Reviewed-by: Sagi Grimberg <sagi@grimbrg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/infiniband/hw/cxgb4/cm.c
drivers/infiniband/hw/cxgb4/device.c
drivers/infiniband/hw/cxgb4/iw_cxgb4.h