lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK2Ky6ygXiHamJS_u0hGyZYvG0sUrSkWcEQ+VSRYbq9M-tHu-A@mail.gmail.com>
Date:	Tue, 12 Nov 2013 10:51:52 +0800
From:	韩磊 <bonben1989@...il.com>
To:	Jeff Moyer <jmoyer@...hat.com>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: About read/write requests in IO scheduler

Thank you very much!

2013/11/12 Jeff Moyer <jmoyer@...hat.com>:
> 韩磊 <bonben1989@...il.com> writes:
>
>> In IO scheduler level, whether all the read requests are synchronous?
>
> Generically, yes, I/O schedulers (and the whole block layer, in fact)
> consider READs synchronous:
>
> /*
>  * We regard a request as sync, if either a read or a sync write
>  */
> static inline bool rw_is_sync(unsigned int rw_flags)
> {
>         return !(rw_flags & REQ_WRITE) || (rw_flags & REQ_SYNC);
> }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ