]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-core: optionally poll sync commands
authorSagi Grimberg <sagi@grimberg.me>
Fri, 14 Dec 2018 19:06:07 +0000 (11:06 -0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 18 Dec 2018 16:50:48 +0000 (17:50 +0100)
commit18257a318d62cf7c1d24df9fa4e9999c3383a2a2
treefa09bd0c7395f476a2c591c9af1a21d0218f6339
parent76d8a9c461a42ada2b110c05ad43f0a908f51cf6
nvme-core: optionally poll sync commands

Pass poll bool to indicate that we need it to poll. This prepares us for
polling support in nvmf since connect is an I/O that will be queued
and has to be polled in order to complete. If poll is passed,
we call nvme_execute_rq_polled which sends the requests and polls
for its completion.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/fabrics.c
drivers/nvme/host/nvme.h