[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [dm-devel] [PATCH 03/11] null_blk: don't set the discard_alignment queue limit
- To: Christoph Hellwig <hch@xxxxxx>, Jens Axboe <axboe@xxxxxxxxx>
- From: Damien Le Moal <damien.lemoal@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 18 Apr 2022 17:01:00 +0900
- Authentication-results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com
- Cc: Jan Hoeppner <hoeppner@xxxxxxxxxxxxx>, "Michael S. Tsirkin" <mst@xxxxxxxxxx>, Jason Wang <jasowang@xxxxxxxxxx>, linux-nvme@xxxxxxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, Song Liu <song@xxxxxxxxxx>, dm-devel@xxxxxxxxxx, "Md. Haris Iqbal" <haris.iqbal@xxxxxxxxx>, Jack Wang <jinpu.wang@xxxxxxxxx>, linux-s390@xxxxxxxxxxxxxxx, Richard Weinberger <richard@xxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, linux-um@xxxxxxxxxxxxxxxxxxx, Mike Snitzer <snitzer@xxxxxxxxxx>, Josef Bacik <josef@xxxxxxxxxxxxxx>, nbd@xxxxxxxxxxxxxxxx, linux-block@xxxxxxxxxxxxxxx, Stefan Haberland <sth@xxxxxxxxxxxxx>, linux-raid@xxxxxxxxxxxxxxx, "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>, Johannes Berg <johannes@xxxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Mon, 18 Apr 2022 08:01:12 +0000
- Ironport-sdr: FSK+niTIVWPIyQbKdZR9DcXH2NU6rXAVwfSU3IUc17ZRuhaFIUSqjuaaVYFAHmVocOswTKA0Jj qtKQiGIMElpiVUi2RKfk+fQ+h5/KTCQvhu4KB7CoawlWtmaJsSzr9TPVWhC1MJOD+bcpLbZrJZ dAtWWZj1Cqzyy+eArFi7qCLsFTVq/lQ+pCVGjVNKXbGy2TelIM3xRuO8ZN8r8Av1uMqy1Ef98/ dyC41Jwxg89q1C1TuMRoHzKG6qahryggP9DWCyCaYL2z0FRgvCazs7sLmjT1SkIHsu8zTJzgy+ 0mNFOMzyT89mlqD7N81UOr5B
- Ironport-sdr: LL/yxAMcvWV+8u3amKRZeDi8bALPYNhlL4Sb3gUsUW50/sY+GVheGM96arfLRe4Bm2Y1g6v9fF ww9vz41jQVM0cSKvYpiSEUuoPLUGM7BgBkABRuM1xk6Im7rPnNpZ9CLs33UUz93aRXmwe+9P5u sN3Gs8GclG4ODsOZOJ9yGZoEPEnPnNPAiLMIowOfx+gVAEqepruGYwD87t9xWYmR5G0x0tY4wb ePWSQ9G9OOaXHtQV038VahJpQu08ivHwGf5s0SVNmKBuwi/xHFx8Qw0ituC0MIey4s9x5GyAj3 6qo=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Wdcironportexception: Internal
On 4/18/22 13:53, Christoph Hellwig wrote:
> The discard_alignment queue limit is named a bit misleading means the
> offset into the block device at which the discard granularity starts.
> Setting it to the discard granularity as done by null_blk is mostly
> harmless but also useless.
>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> ---
> drivers/block/null_blk/main.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c
> index 5cb4c92cdffea..a521e914a9843 100644
> --- a/drivers/block/null_blk/main.c
> +++ b/drivers/block/null_blk/main.c
> @@ -1765,7 +1765,6 @@ static void null_config_discard(struct nullb *nullb)
> }
>
> nullb->q->limits.discard_granularity = nullb->dev->blocksize;
> - nullb->q->limits.discard_alignment = nullb->dev->blocksize;
> blk_queue_max_discard_sectors(nullb->q, UINT_MAX >> 9);
> }
>
Reviewed-by: Damien Le Moal <damien.lemoal@xxxxxxxxxxxxxxxxxx>
--
Damien Le Moal
Western Digital Research
|