Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1160717 > unrolled thread

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

Started byJeff Moyer <jmoyer@redhat.com>
First post2015-06-08 21:10 +0200
Last post2015-06-08 21:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 4/8] cfq-iosched: minor cleanups Jeff Moyer <jmoyer@redhat.com> - 2015-06-08 21:10 +0200

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

FromJeff Moyer <jmoyer@redhat.com>
Date2015-06-08 21:10 +0200
SubjectRe: [PATCH 4/8] cfq-iosched: minor cleanups
Message-ID<pzaAO-7UC-13@gated-at.bofh.it>
Tejun Heo <tj@kernel.org> 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 <tj@kernel.org>
> Cc: Vivek Goyal <vgoyal@redhat.com>
> Cc: Arianna Avanzini <avanzini.arianna@gmail.com>

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 <jmoyer@redhat.com>
--
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/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web