Linux Block layer

Block layer

Block layer is an interface that provides a

software queue

Different from the document and paper, the software queue is only used if q->elevator is not NULL you can see in blk-mq.c

elevator_switch

Reference