nvmf: call transport abort callback when it's not empty
Custom transport may not provide the `qpair_abort_request` callback function, so here for transport API we will just call it when it's not empty. We will add the callback support with vfio-user in another patch. Fix #1883. Change-Id: Icd82a26bde4ed90068bc85ee04cce9642cb6135d Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7291 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: <dongx.yi@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
1fc0c2d8b9
commit
ff5c19b136
@ -560,7 +560,9 @@ void
|
|||||||
nvmf_transport_qpair_abort_request(struct spdk_nvmf_qpair *qpair,
|
nvmf_transport_qpair_abort_request(struct spdk_nvmf_qpair *qpair,
|
||||||
struct spdk_nvmf_request *req)
|
struct spdk_nvmf_request *req)
|
||||||
{
|
{
|
||||||
qpair->transport->ops->qpair_abort_request(qpair, req);
|
if (qpair->transport->ops->qpair_abort_request) {
|
||||||
|
qpair->transport->ops->qpair_abort_request(qpair, req);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
Reference in New Issue
Block a user