Linux block layer
 help / color / mirror / Atom feed
From: Damien Le Moal <dlemoal@kernel.org>
To: Christoph Hellwig <hch@lst.de>,
	Johannes Thumshirn <johannes.thumshirn@wdc.com>
Cc: "axboe@kernel.dk" <axboe@kernel.dk>,
	linux-block@vger.kernel.org, Hannes Reinecke <hare@suse.de>,
	"Martin K. Petersen" <martin.petersen@oracle.com>,
	Niklas Cassel <cassel@kernel.org>,
	Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>,
	Chaitanya Kulkarni <chaitanyak@nvidia.com>
Subject: Re: [PATCH 1/5] blktrace: add ioprio field to struct blk_io_trace2
Date: Thu, 26 Nov 2026 07:26:08 +0900	[thread overview]
Message-ID: <b046d41c-b585-4664-ae0c-cc49b59fde8e@kernel.org> (raw)
In-Reply-To: <20261125045820.GD19878@lst.de>

On 11/25/26 13:58, Christoph Hellwig wrote:
> On Tue, Nov 24, 2026 at 02:35:49PM +0100, Johannes Thumshirn wrote:
>> Add the UAPI definitions for passing I/O priorities, and with them SCSI
>> command duration limit (CDL) hints, to user space:
> 
> Before we start encoding this too hard we really need to fix how CDL
> is used in the kernel.  The whole idea of the user configures the
> CDL descriptor and then the I/O issuers magically knows an I/O
> priority maps to it is completely broken.

Well, that is what is out there now for users that use the drive directly, and
it is in production already. So we cannot really change that.

> We need a way for the FS to know or even configure the CDL descriptor
> and then use that.

For the file system use case, yes, I agree we can do better. Right now, the
current ioprio scheme will only work with ioprio_set() (setting the IO priority
for the user process) and direct I/Os to files only I think (not sure if
buffered I/Os can inherit that per process or per user priority). So there is
room for improvements and we can definitely design an FS interface with some
generic block layer helpers that can set descriptors.

But that I think should not block the blktrace work as we have production
requests for it for the users using the drives directly. Tracing ioprio is still
valid for the pure I/O priority case anyway. bio->bi_ioprio just happens to also
contain the CDL index, at least for now. blktrace being a debug tool, we can
change it later if we need to clearly separate IO priority and CDL index.


-- 
Damien Le Moal
Western Digital Research

  reply	other threads:[~2026-11-25 22:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 13:35 [PATCH 0/5] blktrace: add support for tracing I/O priorities Johannes Thumshirn
2026-11-24 13:35 ` [PATCH 1/5] blktrace: add ioprio field to struct blk_io_trace2 Johannes Thumshirn
2026-11-25  4:58   ` Christoph Hellwig
2026-11-25 22:26     ` Damien Le Moal [this message]
2026-11-26  8:35       ` Christoph Hellwig
2026-11-24 13:35 ` [PATCH 2/5] blktrace: pass ioprio to tracing data Johannes Thumshirn
2026-11-25 22:57   ` Chaitanya Kulkarni
2026-11-25 22:59   ` Chaitanya Kulkarni
2026-11-24 13:35 ` [PATCH 3/5] blktrace: record I/O priorities if requested Johannes Thumshirn
2026-11-25 23:00   ` Chaitanya Kulkarni
2026-11-24 13:35 ` [PATCH 4/5] blktrace: decode ioprio on ftrace block tracer Johannes Thumshirn
2026-11-25 23:00   ` Chaitanya Kulkarni
2026-11-24 13:35 ` [PATCH 5/5] block: add ioprio to the bio based tracepoints Johannes Thumshirn
2026-11-25 23:00   ` Chaitanya Kulkarni

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=b046d41c-b585-4664-ae0c-cc49b59fde8e@kernel.org \
    --to=dlemoal@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=cassel@kernel.org \
    --cc=chaitanyak@nvidia.com \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=johannes.thumshirn@wdc.com \
    --cc=linux-block@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=shinichiro.kawasaki@wdc.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox