]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-tcp: Initialize sk->sk_ll_usec only with NET_RX_BUSY_POLL
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 10 Oct 2019 15:34:12 +0000 (17:34 +0200)
committerKeith Busch <kbusch@kernel.org>
Mon, 14 Oct 2019 14:27:01 +0000 (23:27 +0900)
commit743fb9cd1b2e9a8d924aa4cbd048f89618d12002
treefd5d5f55819e3e916fdfdf31e69e078a853b3bcd
parent53a34b4a2bf4da11ef86a7b5067cd6b5a2303eb0
nvme-tcp: Initialize sk->sk_ll_usec only with NET_RX_BUSY_POLL

The access to sk->sk_ll_usec should be hidden behind
CONFIG_NET_RX_BUSY_POLL like the definition of sk_ll_usec.

Put access to ->sk_ll_usec behind CONFIG_NET_RX_BUSY_POLL.

Fixes: c3ea37df99823 ("nvme-tcp: support simple polling")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/tcp.c