Re: rust nvme driver: potential sleep-in-atomic-context
From: Miguel Ojeda
Date: Thu Nov 03 2022 - 05:37:51 EST
On Thu, Nov 3, 2022 at 7:12 AM Dennis Dai <dzy.0424thu@xxxxxxxxx> wrote:
>
> The rust nvme driver [1] (which is still pending to be merged into
> mainline [2]) has a potential sleep-in-atomic-context bug.
>
> dev.queues.lock().io.try_reserve(nr_io_queues as _)?;
Cc'ing Andreas and fixing Wedson's email. Note that this was written
when it wasn't decided how the `try_*` methods would know about the
flags.
Cheers,
Miguel