My use case is in SCSI EH domain. For my HBA controller of interest, toIMO, it is one bad hw/sw interface.
abort an erroneous IO we must send a controller proprietary abort
command on same HW queue as original command. So we would need to
allocate this abort request for a specific HW queue.
First such request has to be reserved, since all inflight IOs can be in error.
Second error handling needs to provide forward-progress, and it is supposed
to not require external dependency, otherwise easy to cause deadlock, but
here request from specific HW queue just depends on this queue's cpumask.
Also if it has to be reserved, it can be done as one device/driver private
command, so why bother blk-mq for this special use case?
I mentioned before that if no hctx->cpumask is online then we don't needNo, it is really not OK, if all cpus in hctx->cpumask are offline, you
to allocate a request. That is because if no hctx->cpumask is online,
this means that original erroneous IO must be completed due to nature of
how blk-mq cpu hotplug handler works, i.e. drained, and then we don't
actually need to abort it any longer, so ok to not get a request.
can't allocate
request on the specified hw queue, then the erroneous IO can't be handled,
then cpu hotplug handler may hang for ever.