Re: blk-mq: improvement CPU hotplug (simplified version) v2

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

 



On 18/05/2020 07:39, Christoph Hellwig wrote:
Hi all,

this series ensures I/O is quiesced before a cpu and thus the managed
interrupt handler is shut down.

This patchset tries to address the issue by the following approach:

  - before the last cpu in hctx->cpumask is going to offline, mark this
    hctx as inactive

  - disable preempt during allocating tag for request, and after tag is
    allocated, check if this hctx is inactive. If yes, give up the
    allocation and try remote allocation from online CPUs

  - before hctx becomes inactive, drain all allocated requests on this
    hctx

The guts of the changes are from Ming Lei, I just did a bunch of prep
cleanups so that they can fit in more nicely.  The series also depends
on my "avoid a few q_usage_counter roundtrips v3" series.

Thanks John Garry for running lots of tests on arm64 with this previous
version patches and co-working on investigating all kinds of issues.

A git tree is available here:

     git://git.infradead.org/users/hch/block.git blk-mq-hotplug

Gitweb:

     http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/blk-mq-hotplug
.


FWIW, I tested this series for cpu hotplug and it looked ok.

john



[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