]> git.baikalelectronics.ru Git - kernel.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)
commitc3ea37df99823c199673bffe942f580f89ab1dd0
tree9a1c93b1ce280c65600833230da6204bf92e971d
parent4fcf7af1581ac54012f04085c2b4d5dc08dbafe4
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