Re: [PATCH] blk-mq: use queisced elevator switch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 27, 2022 at 5:09 AM Keith Busch <kbusch@xxxxxx> wrote:
>
> From: Keith Busch <kbusch@xxxxxxxxxx>
>
> The hctx's work may be racing with the elevator switch that occurs when
> reinitializing hardware queues. This happens because the queue is merely
> frozen in this context, but that only prevents requests from allocating
> and doesn't stop the hctx work from running. When swapping the io
> scheduler, this leaves a race condition open where the work may get a
> pointer to an elevator that's being torn down. Use the quiesced elevator
> switch instead.
>
> Signed-off-by: Keith Busch <kbusch@xxxxxxxxxx>

This patch should fix one kernel panic when running stress
test(elevator switch vs
nvme pci reset/scan).

Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxx>




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux