]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5ee89ad05a348c31a102464fc6ce12851fdd872
tree559252d94463a7ac1d8ed7ec42cc205bc5e60473
parentae97f76910d1b251e9bbd5db58c9b53a0ba7dfe4
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