If RQF_ELVPRIV is set RQF_ELV is by definition set as well. Signed-off-by: Christoph Hellwig <hch@xxxxxx> --- block/blk-mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 428e0e0fd5504..34392c439d2a8 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -580,7 +580,7 @@ void blk_mq_free_request(struct request *rq) struct request_queue *q = rq->q; struct blk_mq_hw_ctx *hctx = rq->mq_hctx; - if (rq->rq_flags & (RQF_ELVPRIV | RQF_ELV)) { + if (rq->rq_flags & RQF_ELV) { struct elevator_queue *e = q->elevator; if (e->type->ops.finish_request) -- 2.30.2