2023-09-26 20:02:21

by Sagi Grimberg

[permalink] [raw]
Subject: Re: [PATCH] nvmet-rdma: use spin_lock_bh() on rsp_wr_wait_lock



On 9/26/23 20:22, Chengfeng Ye wrote:
> It seems to me that read_cqe.done could be executed under softirq
> context,

It doesn't though.

> as done callbacks always do, and it acquires rsp_wr_wait_lock
> along the following call chain.

The CQ polling context is IB_POLL_WORKQUEUE, which does not
run in softirq.