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)
commit6287b51c77e6d8f05f772931cf51d80e81651a9f
treefa09bd0c7395f476a2c591c9af1a21d0218f6339
parent7b7ab780a048699d2b9f416bf2d5c089d8d1028c
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