OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] cfq: wrong sync writes detection
Re: [PATCH] cfq: wrong sync writes detection [message #8937 is a reply to message #8935] Mon, 11 December 2006 16:07 Go to previous message
Jens Axboe is currently offline  Jens Axboe
Messages: 30
Registered: October 2006
Member
On Mon, Dec 11 2006, Vasily Tarasov wrote:
> CFQ I/O scheduler does the following actions to
> find out whether the request is sync:
>
> rw = rq_data_dir(rq); => possible values for rw are 0 or 1
>
> static inline pid_t cfq_queue_pid(struct task_struct *task, int rw)
> {
> if (rw == READ || rw == WRITE_SYNC) => second condition is always false
> return task->pid;
>
> return CFQ_KEY_ASYNC;
> }
>
> The following patch fixes the bug by adding sync parameter,
> wich is obtained through bio_sync macros.

Good catch! Applied.

--
Jens Axboe
 
Read Message
Read Message
Previous Topic: Re: [patch 06/20] [Network namespace] Move the nsproxy NULL affection
Next Topic: Re: [RFC] level 2 network namespaces
Goto Forum:
  


Current Time: Tue Sep 09 12:06:23 GMT 2025

Total time taken to generate the page: 0.08563 seconds