Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b706f642 authored by Shan Wei's avatar Shan Wei Committed by Jens Axboe
Browse files

cfq-iosched: remove redundant check for NULL cfqq in cfq_set_request()



With the changes for falling back to an oom_cfqq, we never fail
to find/allocate a queue in cfq_get_queue(). So remove the check.

Signed-off-by: default avatarShan Wei <shanwei@cn.fujitsu.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent db64f680
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2313,10 +2313,6 @@ cfq_set_request(struct request_queue *q, struct request *rq, gfp_t gfp_mask)
	cfqq = cic_to_cfqq(cic, is_sync);
	if (!cfqq) {
		cfqq = cfq_get_queue(cfqd, is_sync, cic->ioc, gfp_mask);

		if (!cfqq)
			goto queue_fail;

		cic_set_cfqq(cic, cfqq, is_sync);
	}