linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* About read/write requests in IO scheduler
@ 2013-11-10 12:36 韩磊
  2013-11-11 13:21 ` Fwd: " 韩磊
  2013-11-11 18:32 ` Jeff Moyer
  0 siblings, 2 replies; 4+ messages in thread
From: 韩磊 @ 2013-11-10 12:36 UTC (permalink / raw)
  To: Linux Kernel Mailing List

In IO scheduler level, whether all the read requests are synchronous?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Fwd: About read/write requests in IO scheduler
  2013-11-10 12:36 About read/write requests in IO scheduler 韩磊
@ 2013-11-11 13:21 ` 韩磊
  2013-11-11 18:32 ` Jeff Moyer
  1 sibling, 0 replies; 4+ messages in thread
From: 韩磊 @ 2013-11-11 13:21 UTC (permalink / raw)
  To: Linux Kernel Mailing List

---------- Forwarded message ----------
From: 韩磊 <bonben1989@gmail.com>
Date: 2013/11/10
Subject: About read/write requests in IO scheduler
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>


In IO scheduler level, whether all the read requests are synchronous?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: About read/write requests in IO scheduler
  2013-11-10 12:36 About read/write requests in IO scheduler 韩磊
  2013-11-11 13:21 ` Fwd: " 韩磊
@ 2013-11-11 18:32 ` Jeff Moyer
  2013-11-12  2:51   ` 韩磊
  1 sibling, 1 reply; 4+ messages in thread
From: Jeff Moyer @ 2013-11-11 18:32 UTC (permalink / raw)
  To: 韩磊; +Cc: Linux Kernel Mailing List

韩磊 <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);
}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: About read/write requests in IO scheduler
  2013-11-11 18:32 ` Jeff Moyer
@ 2013-11-12  2:51   ` 韩磊
  0 siblings, 0 replies; 4+ messages in thread
From: 韩磊 @ 2013-11-12  2:51 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: Linux Kernel Mailing List

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);
> }

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-12  2:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-10 12:36 About read/write requests in IO scheduler 韩磊
2013-11-11 13:21 ` Fwd: " 韩磊
2013-11-11 18:32 ` Jeff Moyer
2013-11-12  2:51   ` 韩磊

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).