All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Herrmann <aherrmann@suse.com>
To: "Elliott, Robert (Servers)" <elliott@hpe.com>
Cc: Jens Axboe <axboe@kernel.dk>,
	"fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: [PATCH 1/2] thread_options: Add cgroup_use_bfq
Date: Mon, 31 Aug 2020 08:03:59 +0200	[thread overview]
Message-ID: <20200831060359.GL6041@suselix> (raw)
In-Reply-To: <DF4PR8401MB10491D443BCBDD8B9586F4FFAB520@DF4PR8401MB1049.NAMPRD84.PROD.OUTLOOK.COM>

On Fri, Aug 28, 2020 at 06:36:56PM +0000, Elliott, Robert (Servers) wrote:
> 
> 
> > -----Original Message-----
> > From: fio-owner@vger.kernel.org <fio-owner@vger.kernel.org> On Behalf
> > Of Andreas Herrmann
> > Sent: Friday, August 28, 2020 5:05 AM
> > To: Jens Axboe <axboe@kernel.dk>
> > Cc: fio@vger.kernel.org
> > Subject: [PATCH 1/2] thread_options: Add cgroup_use_bfq
> > 
> ...
> > @@ -593,11 +594,13 @@ struct thread_options_pack {
> >  	uint8_t profile[FIO_TOP_STR_MAX];
> > 
> >  	/*
> > -	 * blkio cgroup support
> > +	 * (blk)io cgroup support
> >  	 */
> >  	uint8_t cgroup[FIO_TOP_STR_MAX];
> >  	uint32_t cgroup_weight;
> >  	uint32_t cgroup_nodelete;
> > +	uint32_t cgroup_use_bfq;
> > +	uint32_t padding;       /* remove when possible to maintain alignment */
> > 
> >  	uint32_t uid;
> >  	uint32_t gid;
> 
> Since the structure already has three pad fields:
>         uint32_t pad;
> 
>         uint64_t size;
> 	...
>         uint32_t pad2;
>         uint64_t rand_seed;
> 	...
>         uint32_t pad3;
>         fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
> 
> pad4 would seem like the natural name for another padding field, and
> the comment doesn't seem necessary.

Good point.
I'll modify my patch.

-- 
Regards,
Andreas

SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer (HRB 36809, AG Nürnberg)



  parent reply	other threads:[~2020-08-31  6:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-28 10:02 [PATCH 0/2] cgroup: Enable weight tests with cgroup-v2 Andreas Herrmann
2020-08-28 10:04 ` [PATCH 1/2] thread_options: Add cgroup_use_bfq Andreas Herrmann
2020-08-28 18:36   ` Elliott, Robert (Servers)
2020-08-28 23:52     ` Jens Axboe
2020-08-29  2:14       ` Elliott, Robert (Servers)
2020-08-31  6:07       ` Andreas Herrmann
2020-08-31  6:03     ` Andreas Herrmann [this message]
2020-08-28 10:06 ` [PATCH 2/2] cgroup: Allow to use weights with cgroup-v2 Andreas Herrmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200831060359.GL6041@suselix \
    --to=aherrmann@suse.com \
    --cc=axboe@kernel.dk \
    --cc=elliott@hpe.com \
    --cc=fio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.