nvme-fabrics: add a request timeout helper
authorChaitanya Kulkarni <kch@nvidia.com>
Wed, 30 Mar 2022 09:40:32 +0000 (02:40 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 16 May 2022 06:07:25 +0000 (08:07 +0200)
commit93ba75c90524618ef2c20979b0e660b9d071f0e6
tree559252d94463a7ac1d8ed7ec42cc205bc5e60473
parentb98235d3a471e121376bfabce27380dde5add1d9
nvme-fabrics: add a request timeout helper

The RDAMA and TCP transport both complete the timed out request in the
same manner and hence code is duplicated. Add and use the helper
nvmf_complete_timed_out_request() to remove the duplicate code.

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fabrics.h
drivers/nvme/host/rdma.c
drivers/nvme/host/tcp.c