lkml.org 
[lkml]   [2013]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: About read/write requests in IO scheduler
From
Thank you very much!

2013/11/12 Jeff Moyer <jmoyer@redhat.com>:
> 韩磊 <bonben1989@gmail.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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2013-11-12 04:01    [W:0.044 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site