All of lore.kernel.org
 help / color / mirror / Atom feed
From: "kanchan" <joshi.k@samsung.com>
To: "'Jens Axboe'" <axboe@kernel.dk>, <linux-kernel@vger.kernel.org>,
	<linux-block@vger.kernel.org>, <linux-nvme@lists.infradead.org>,
	<linux-fsdevel@vger.kernel.org>, <linux-ext4@vger.kernel.org>
Cc: <prakash.v@samsung.com>
Subject: RE: [PATCH v4 4/7] block: introduce write-hint to stream-id conversion
Date: Mon, 22 Apr 2019 19:06:49 +0530	[thread overview]
Message-ID: <009c01d4f910$7db6ec40$7924c4c0$@samsung.com> (raw)
In-Reply-To: <6850a3ad-805f-4232-1bc7-f3249e1fba96@kernel.dk>

> Why not just use the bio write hint? We already disallow merging of dissimilar write hints, so req->bio->bi_write_hint is known to be identical with the rest of the bio's in that chain.

Yes, that is better. Thanks for suggesting it.

-----Original Message-----
From: Jens Axboe [mailto:axboe@kernel.dk] 
Sent: Wednesday, April 17, 2019 11:28 PM
To: Kanchan Joshi <joshi.k@samsung.com>; linux-kernel@vger.kernel.org; linux-block@vger.kernel.org; linux-nvme@lists.infradead.org; linux-fsdevel@vger.kernel.org; linux-ext4@vger.kernel.org
Cc: prakash.v@samsung.com
Subject: Re: [PATCH v4 4/7] block: introduce write-hint to stream-id conversion

On 4/17/19 11:50 AM, Kanchan Joshi wrote:
> This patch moves write-hint-to-stream-id conversion in block-layer.
> Earlier this was done by driver (nvme). Current conversion is of the 
> form "streamid = write-hint - 1", for both user and kernel streams.
> Conversion takes stream limit (maintained in request queue) into 
> account. Write-hints beyond the exposed limit turn to 0.
> A new field 'streamid' has been added in request. While 'write-hint'
> field continues to exist. It keeps original value passed from upper 
> layer, and used during merging checks.

Why not just use the bio write hint? We already disallow merging of dissimilar write hints, so req->bio->bi_write_hint is known to be identical with the rest of the bio's in that chain.

--
Jens Axboe



WARNING: multiple messages have this Message-ID (diff)
From: joshi.k@samsung.com (kanchan)
Subject: [PATCH v4 4/7] block: introduce write-hint to stream-id conversion
Date: Mon, 22 Apr 2019 19:06:49 +0530	[thread overview]
Message-ID: <009c01d4f910$7db6ec40$7924c4c0$@samsung.com> (raw)
In-Reply-To: <6850a3ad-805f-4232-1bc7-f3249e1fba96@kernel.dk>

> Why not just use the bio write hint? We already disallow merging of dissimilar write hints, so req->bio->bi_write_hint is known to be identical with the rest of the bio's in that chain.

Yes, that is better. Thanks for suggesting it.

-----Original Message-----
From: Jens Axboe [mailto:axboe@kernel.dk] 
Sent: Wednesday, April 17, 2019 11:28 PM
To: Kanchan Joshi <joshi.k at samsung.com>; linux-kernel at vger.kernel.org; linux-block at vger.kernel.org; linux-nvme at lists.infradead.org; linux-fsdevel at vger.kernel.org; linux-ext4 at vger.kernel.org
Cc: prakash.v at samsung.com
Subject: Re: [PATCH v4 4/7] block: introduce write-hint to stream-id conversion

On 4/17/19 11:50 AM, Kanchan Joshi wrote:
> This patch moves write-hint-to-stream-id conversion in block-layer.
> Earlier this was done by driver (nvme). Current conversion is of the 
> form "streamid = write-hint - 1", for both user and kernel streams.
> Conversion takes stream limit (maintained in request queue) into 
> account. Write-hints beyond the exposed limit turn to 0.
> A new field 'streamid' has been added in request. While 'write-hint'
> field continues to exist. It keeps original value passed from upper 
> layer, and used during merging checks.

Why not just use the bio write hint? We already disallow merging of dissimilar write hints, so req->bio->bi_write_hint is known to be identical with the rest of the bio's in that chain.

--
Jens Axboe

  reply	other threads:[~2019-04-22 13:37 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20190417175347epcas2p41e4240ab83b46c9f07d237fc9494903a@epcas2p4.samsung.com>
2019-04-17 17:49 ` [PATCH v4 0/7] Extend write-hint/stream infrastructure Kanchan Joshi
2019-04-17 17:49   ` Kanchan Joshi
2019-04-17 17:50   ` [PATCH v4 1/7] fs: introduce write-hint start point for in-kernel hints Kanchan Joshi
2019-04-17 17:50     ` Kanchan Joshi
2019-04-17 17:50   ` [PATCH v4 2/7] block: increase stream count for in-kernel use Kanchan Joshi
2019-04-17 17:50     ` Kanchan Joshi
2019-04-17 17:50   ` [PATCH v4 3/7] block: introduce API to register stream information with block-layer Kanchan Joshi
2019-04-17 17:50     ` Kanchan Joshi
2019-04-17 17:50   ` [PATCH v4 4/7] block: introduce write-hint to stream-id conversion Kanchan Joshi
2019-04-17 17:50     ` Kanchan Joshi
2019-04-17 17:57     ` Jens Axboe
2019-04-17 17:57       ` Jens Axboe
2019-04-22 13:36       ` kanchan [this message]
2019-04-22 13:36         ` kanchan
2019-04-18 14:06     ` Jan Kara
2019-04-18 14:06       ` Jan Kara
2019-04-18 18:58       ` Andreas Dilger
2019-04-18 18:58         ` Andreas Dilger
2019-04-22 13:33         ` kanchan
2019-04-22 13:33           ` kanchan
2019-04-17 17:50   ` [PATCH v4 5/7] nvme: register stream info with block layer Kanchan Joshi
2019-04-17 17:50     ` Kanchan Joshi
2019-04-18 13:52     ` Jan Kara
2019-04-18 13:52       ` Jan Kara
2019-04-22 13:43       ` kanchan
2019-04-22 13:43         ` kanchan
2019-04-17 17:50   ` [PATCH v4 6/7] fs: introduce APIs to enable passing write-hint with buffer-head Kanchan Joshi
2019-04-17 17:50     ` Kanchan Joshi
2019-04-17 17:50   ` [PATCH v4 7/7] fs/ext4,jbd2: add support for sending write-hint with journal Kanchan Joshi
2019-04-17 17:50     ` Kanchan Joshi

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='009c01d4f910$7db6ec40$7924c4c0$@samsung.com' \
    --to=joshi.k@samsung.com \
    --cc=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=prakash.v@samsung.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 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.