]> 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)
commit973f0d96a5c6a05af9373056d41a8d930ec78656
tree9a1c93b1ce280c65600833230da6204bf92e971d
parent3ffb9ddd2e8fa9a46a87eb5281e32070b1530ffa
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