On 10/6/19 4:45 AM, Ming Lei wrote: > Add a new hw queue state of BLK_MQ_S_INTERNAL_STOPPED, which prepares > for stopping hw queue before all CPUs of this hctx become offline. > > We can't reuse BLK_MQ_S_STOPPED because that state can be cleared during IO > completion. > > Cc: Bart Van Assche <bvanassche@xxxxxxx> > Cc: Hannes Reinecke <hare@xxxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> > Cc: Keith Busch <keith.busch@xxxxxxxxx> > Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> > --- > block/blk-mq-debugfs.c | 1 + > block/blk-mq.h | 3 ++- > include/linux/blk-mq.h | 3 +++ > 3 files changed, 6 insertions(+), 1 deletion(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 247165 (AG München), GF: Felix Imendörffer