Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nvme-tcp: use bh_lock in data_ready

data_ready may be invoked from send context or from
softirq, so need bh locking for that.

Fixes: 3f2304f8c6d6 ("nvme-tcp: add NVMe over TCP host driver")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Sagi Grimberg and committed by
Jens Axboe
386e5e6e 2a5bcfdd

+2 -2
+2 -2
drivers/nvme/host/tcp.c
··· 794 794 { 795 795 struct nvme_tcp_queue *queue; 796 796 797 - read_lock(&sk->sk_callback_lock); 797 + read_lock_bh(&sk->sk_callback_lock); 798 798 queue = sk->sk_user_data; 799 799 if (likely(queue && queue->rd_enabled)) 800 800 queue_work_on(queue->io_cpu, nvme_tcp_wq, &queue->io_work); 801 - read_unlock(&sk->sk_callback_lock); 801 + read_unlock_bh(&sk->sk_callback_lock); 802 802 } 803 803 804 804 static void nvme_tcp_write_space(struct sock *sk)