]> asedeno.scripts.mit.edu Git - linux.git/commit
nvme-tcp: support simple polling
authorSagi Grimberg <sagi@grimberg.me>
Wed, 3 Jul 2019 21:08:04 +0000 (14:08 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 29 Aug 2019 19:55:01 +0000 (12:55 -0700)
commit1a9460cef571100487cde9c44110a5afff2e9ea2
tree9a1c93b1ce280c65600833230da6204bf92e971d
parent79fd751d61aa8b9979d51357236890d69989ba04
nvme-tcp: support simple polling

Simple polling support via socket busy_poll interface.
Although we do not shutdown interrupts but simply hammer
the socket poll, we can sometimes find completions faster
than the normal interrupt driven RX path.

We add per queue nr_cqe counter that resets every time
RX path is invoked such that .poll callback can return it
to stay consistent with the semantics.

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