block: Inline blk_rq_set_prio()
Since only a single caller remains, inline blk_rq_set_prio(). Initialize req->ioprio even if no I/O priority has been set in the bio nor in the I/O context. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Adam Manzanares <adam.manzanares@wdc.com> Tested-by: Adam Manzanares <adam.manzanares@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Cc: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
committed by
Jens Axboe
parent
9460e28022
commit
0be0dee64e
@@ -1087,20 +1087,6 @@ static inline unsigned int blk_rq_count_bios(struct request *rq)
|
||||
return nr_bios;
|
||||
}
|
||||
|
||||
/*
|
||||
* blk_rq_set_prio - associate a request with prio from ioc
|
||||
* @rq: request of interest
|
||||
* @ioc: target iocontext
|
||||
*
|
||||
* Assocate request prio with ioc prio so request based drivers
|
||||
* can leverage priority information.
|
||||
*/
|
||||
static inline void blk_rq_set_prio(struct request *rq, struct io_context *ioc)
|
||||
{
|
||||
if (ioc)
|
||||
rq->ioprio = ioc->ioprio;
|
||||
}
|
||||
|
||||
/*
|
||||
* Request issue related functions.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user