Re: [PATCH 4/8] cfq-iosched: minor cleanups

From
Jeff Moyer <hidden>
Date
2015-06-08 18:59:58
Also in
lkml
Tejun Heo [off-list ref] writes:
* Some were accessing cic->cfqq[] directly.  Always use cic_to_cfqq()
  and cic_set_cfqq().

* check_ioprio_changed() doesn't need to verify cfq_get_queue()'s
  return for NULL.  It's always non-NULL.  Simplify accordingly.

This patch doesn't cause any functional changes.

Signed-off-by: Tejun Heo <redacted>
Cc: Vivek Goyal <redacted>
Cc: Arianna Avanzini <redacted>
Looks good.  I don't much like the "bool is_sync" function parameters.
Calls to cic_to_cfqq, cic_set_cfqq, etc would be much easier to read if
they took BLK_RW_SYNC and BLK_RW_ASYNC.  Certainly not a problem with
this patch, though, just a general observation.

Reviewed-by: Jeff Moyer <redacted>
Thread (1 message) 1 message, 1 author, last reply 2015-06-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help