nvme-tcp: block BH in sk state_change sk callback
The TCP stack can run from process context for a long time
so we should disable BH here.
Fixes: 3f2304f8c6
("nvme-tcp: add NVMe over TCP host driver")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
79695dcd9a
commit
8b73b45d54
@ -870,7 +870,7 @@ static void nvme_tcp_state_change(struct sock *sk)
|
|||||||
{
|
{
|
||||||
struct nvme_tcp_queue *queue;
|
struct nvme_tcp_queue *queue;
|
||||||
|
|
||||||
read_lock(&sk->sk_callback_lock);
|
read_lock_bh(&sk->sk_callback_lock);
|
||||||
queue = sk->sk_user_data;
|
queue = sk->sk_user_data;
|
||||||
if (!queue)
|
if (!queue)
|
||||||
goto done;
|
goto done;
|
||||||
@ -891,7 +891,7 @@ static void nvme_tcp_state_change(struct sock *sk)
|
|||||||
|
|
||||||
queue->state_change(sk);
|
queue->state_change(sk);
|
||||||
done:
|
done:
|
||||||
read_unlock(&sk->sk_callback_lock);
|
read_unlock_bh(&sk->sk_callback_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool nvme_tcp_queue_more(struct nvme_tcp_queue *queue)
|
static inline bool nvme_tcp_queue_more(struct nvme_tcp_queue *queue)
|
||||||
|
Loading…
Reference in New Issue
Block a user