Re: About read/write requests in IO scheduler

2013-11-11 Thread 韩磊
Thank you very much! 2013/11/12 Jeff Moyer : > 韩磊 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

Re: About read/write requests in IO scheduler

2013-11-11 Thread Jeff Moyer
韩磊 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