mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
blk-mq: rename mq_flush_work struct request member
We will use this work_struct to requeue scsi commands from the completion handler as well, so give it a more generic name. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
ed0791b2f8
commit
f88a164b72
2 changed files with 4 additions and 4 deletions
|
|
@ -134,7 +134,7 @@ static void mq_flush_run(struct work_struct *work)
|
|||
{
|
||||
struct request *rq;
|
||||
|
||||
rq = container_of(work, struct request, mq_flush_work);
|
||||
rq = container_of(work, struct request, requeue_work);
|
||||
|
||||
memset(&rq->csd, 0, sizeof(rq->csd));
|
||||
blk_mq_insert_request(rq, false, true, false);
|
||||
|
|
@ -143,8 +143,8 @@ static void mq_flush_run(struct work_struct *work)
|
|||
static bool blk_flush_queue_rq(struct request *rq, bool add_front)
|
||||
{
|
||||
if (rq->q->mq_ops) {
|
||||
INIT_WORK(&rq->mq_flush_work, mq_flush_run);
|
||||
kblockd_schedule_work(&rq->mq_flush_work);
|
||||
INIT_WORK(&rq->requeue_work, mq_flush_run);
|
||||
kblockd_schedule_work(&rq->requeue_work);
|
||||
return false;
|
||||
} else {
|
||||
if (add_front)
|
||||
|
|
|
|||
Loading…
Reference in a new issue