]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nvme: remove unused timeout parameter
authorChaitanya Kulkarni <kch@nvidia.com>
Tue, 7 Jun 2022 01:16:42 +0000 (18:16 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:14:47 +0000 (17:14 -0600)
commit6b46fa024a452fdbf2dc797d30b35598d934ba33
treeb582cdebe0be3aa2ab149ab439ba84f7d77df968
parent2c61c97fb12b806e1c8eb15f04c277ad097ec95e
nvme: remove unused timeout parameter

The function __nvme_submit_sync_cmd() has following list of callers
that sets the timeout value to 0 :-

        Callers               |   Timeout value
------------------------------------------------
nvme_submit_sync_cmd()        |        0
nvme_features()               |        0
nvme_sec_submit()             |        0
nvmf_reg_read32()             |        0
nvmf_reg_read64()             |        0
nvmf_reg_write32()            |        0
nvmf_connect_admin_queue()    |        0
nvmf_connect_io_queue()       |        0

Remove the timeout function parameter from __nvme_submit_sync_cmd() and
adjust the rest of code accordingly.

Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/fabrics.c
drivers/nvme/host/nvme.h