lkml.org 
[lkml]   [2018]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 04/13] blkcg: introduce common blkg association logic
>  EXPORT_SYMBOL_GPL(bio_associate_blkcg);
>
> /**
> - * bio_associate_blkg - associate a bio with the a blkg
> + * bio_has_queue - required check for blkg association
> + * @bio: target bio
> + *
> + * A blkg represents the relationship between a blkcg and a request_queue.
> + * If there is no request_queue, there is no blkg and therefore nothing to
> + * associate with.
> + */
> +static inline bool bio_has_queue(struct bio *bio)
> +{
> + return bio->bi_disk && bio->bi_disk->queue;
> +}

How do you ever see a bio without a queue? We can't even do I/O in
that case.

\
 
 \ /
  Last update: 2018-11-30 10:53    [W:0.138 / U:1.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site