From: Damien Le Moal <damien.lemoal@opensource.wdc.com>
To: Bart Van Assche <bvanassche@acm.org>, Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org, Christoph Hellwig <hch@lst.de>,
Ming Lei <ming.lei@redhat.com>,
Chaitanya Kulkarni <kch@nvidia.com>,
Johannes Thumshirn <johannes.thumshirn@wdc.com>,
Vincent Fu <vincent.fu@samsung.com>,
Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>,
Yu Kuai <yukuai3@huawei.com>
Subject: Re: [PATCH 10/10] null_blk: Support configuring the maximum segment size
Date: Fri, 21 Oct 2022 08:39:23 +0900 [thread overview]
Message-ID: <9dcee00a-90f6-c814-0e4e-51adc025b49f@opensource.wdc.com> (raw)
In-Reply-To: <5856bd90-9a7f-09c1-3749-2c98c42bfcde@acm.org>
On 10/21/22 08:34, Bart Van Assche wrote:
> On 10/20/22 16:13, Damien Le Moal wrote:
>> On 10/20/22 07:23, Bart Van Assche wrote:
>>> diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c
>>> index 1f154f92f4c2..bc811ab52c4a 100644
>>> --- a/drivers/block/null_blk/main.c
>>> +++ b/drivers/block/null_blk/main.c
>>> @@ -157,6 +157,10 @@ static int g_max_sectors;
>>> module_param_named(max_sectors, g_max_sectors, int, 0444);
>>> MODULE_PARM_DESC(max_sectors, "Maximum size of a command (in 512B sectors)");
>>>
>>> +static unsigned int g_max_segment_size = 1UL << 31;
>>
>> Nit: UINT_MAX ?
>
> Hi Damien,
>
> That would be a valid alternative. I will consider changing the value
> into UINT_MAX.
>
>>> @@ -2088,6 +2100,7 @@ static int null_add_dev(struct nullb_device *dev)
>>> nullb->q->queuedata = nullb;
>>> blk_queue_flag_set(QUEUE_FLAG_NONROT, nullb->q);
>>> blk_queue_flag_clear(QUEUE_FLAG_ADD_RANDOM, nullb->q);
>>> + blk_queue_flag_set(QUEUE_FLAG_SUB_PAGE_SEGMENTS, nullb->q);
>>
>> Where is this defined ? I do not see this flag defined anywhere in Linus
>> tree nor in Jens for-next...
>
> That flag has been defined in patch 05/10 of this series.
>
> In case you would like to take a look, the code I used to test this
> series is available here:
> https://github.com/bvanassche/blktests/commits/master
Please always send full patch series. Hard to review a patch without the
context for it :)
>
> Thanks,
>
> Bart.
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2022-10-20 23:39 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-19 22:23 [PATCH 00/10] Support DMA segments smaller than the page size Bart Van Assche
2022-10-19 22:23 ` [PATCH 01/10] block: Remove request.write_hint Bart Van Assche
2022-10-21 1:59 ` Ming Lei
2022-10-19 22:23 ` [PATCH 02/10] block: Constify most queue limits pointers Bart Van Assche
2022-10-21 2:01 ` Ming Lei
2022-10-19 22:23 ` [PATCH 03/10] block: Micro-optimize get_max_segment_size() Bart Van Assche
2022-10-21 2:17 ` Ming Lei
2022-10-19 22:23 ` [PATCH 04/10] block: Add support for small segments in blk_rq_map_user_iov() Bart Van Assche
2022-10-19 22:23 ` [PATCH 05/10] block: Introduce QUEUE_FLAG_SUB_PAGE_SEGMENTS Bart Van Assche
2022-10-19 22:23 ` [PATCH 06/10] block: Fix the number of segment calculations Bart Van Assche
2022-11-01 17:23 ` Bart Van Assche
2022-11-02 1:22 ` Ming Lei
2022-11-03 19:32 ` Bart Van Assche
2022-10-19 22:23 ` [PATCH 07/10] block: Add support for segments smaller than the page size Bart Van Assche
2022-10-19 22:23 ` [PATCH 08/10] scsi: core: Set the SUB_PAGE_SEGMENTS request queue flag Bart Van Assche
2022-10-19 22:23 ` [PATCH 09/10] scsi_debug: Support configuring the maximum segment size Bart Van Assche
2022-10-19 22:23 ` [PATCH 10/10] null_blk: " Bart Van Assche
2022-10-20 23:13 ` Damien Le Moal
2022-10-20 23:34 ` Bart Van Assche
2022-10-20 23:39 ` Damien Le Moal [this message]
2022-10-21 0:39 ` Bart Van Assche
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=9dcee00a-90f6-c814-0e4e-51adc025b49f@opensource.wdc.com \
--to=damien.lemoal@opensource.wdc.com \
--cc=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=hch@lst.de \
--cc=johannes.thumshirn@wdc.com \
--cc=kch@nvidia.com \
--cc=linux-block@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=shinichiro.kawasaki@wdc.com \
--cc=vincent.fu@samsung.com \
--cc=yukuai3@huawei.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.