OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] cfq: get rid of cfqq hash
Re: [PATCH] cfq: get rid of cfqq hash [message #12320 is a reply to message #12299] Wed, 25 April 2007 06:58 Go to previous messageGo to previous message
Jens Axboe is currently offline  Jens Axboe
Messages: 30
Registered: October 2006
Member
On Tue, Apr 24 2007, Vasily Tarasov wrote:
> @@ -1806,7 +1765,11 @@ static int cfq_may_queue(request_queue_t
> * so just lookup a possibly existing queue, or return 'may queue'
> * if that fails
> */
> - cfqq = cfq_find_cfq_hash(cfqd, key, tsk->ioprio);
> + cic = cfq_get_io_context_noalloc(cfqd, tsk);
> + if (!cic)
> + return ELV_MQUEUE_MAY;
> +
> + cfqq = cic->cfqq[rw & REQ_RW_SYNC];
> if (cfqq) {
> cfq_init_prio_data(cfqq);
> cfq_prio_boost(cfqq);

Ahem, how well did you test this patch?

--
Jens Axboe
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [patch 0/8] mount ownership and unprivileged mount syscall (v4)
Next Topic: [RSS Controller -v2] Fix freeing of active pages
Goto Forum:
  


Current Time: Tue Jul 16 16:54:45 GMT 2024

Total time taken to generate the page: 0.05278 seconds