函数源码 |
Source File:block\mq-deadline.c |
Create Date:2022-07-27 19:26:15 |
首页 | Copyright©Brick |
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 | /* * One confusing aspect here is that we get called for a specific * hardware queue, but we may return a request that is for a * different hardware queue. This is because mq-deadline has shared * state for all hardware queues, in terms of sorting, FIFOs, etc. */ static struct request *dd_dispatch_request( struct blk_mq_hw_ctx *hctx) { struct deadline_data *dd = hctx->queue->elevator->elevator_data; struct request *rq; spin_lock(&dd->lock); rq = __dd_dispatch_request(dd); spin_unlock(&dd->lock); return rq; } |