[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 17/19] block: pass a block_device and opf to bio_alloc
- To: Christoph Hellwig <hch@xxxxxx>, Jens Axboe <axboe@xxxxxxxxx>
- From: Chaitanya Kulkarni <chaitanyak@xxxxxxxxxx>
- Date: Tue, 18 Jan 2022 22:14:17 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zSJliUmMKGywiR7aX2A0K7VaQAgJnTUG4RzJwOOxmtY=; b=UAgv6P/KTlFBeVyfCrB6leBJABVI8j89enDpk7dmiUdc/rWA+rZdhUsC8248SkLa2RbeSTY53PRFbHgQdvoFVdbU0QAwq/hJavwFdL1SEBMHdMDwzxDnQeq+8PmEYISspgapAwTLUNjyaz0zpoqoHulcFNiS7cW+HNGn7ISHtTi7JPFe6nZsof4mPZP4HHoNy8nVnkxtTj0kjASXENzkzQq4oGTvcpKVaPUk3d/raTFLODLG/2JHNVuNnxwwI1UkN8420YmXnTU0cXd800y56hAZZlRu5HaZ9Utpxt1FTpTvanQspV6jy15QBA4tS31K+eRBo6PVKy2vGTbRhFoaJg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kiuAV0MFiE8h5Eq3aaohkVMf81XBM+WzNGwxu6yyDKLW1MVeGGIceRGfCyNLVarzSzVSR6nNj5t3wK6HOIw//j1SJcNX5TLqZTxAfWC8K7kjgLLMNZEXQim0kBh6V/YgpBeM2t/M/JJOZrZZSENNXICfii7b69FnKnnBMjAulnFrwaqUcp5h/8dpsgi70a9BurJHFQbisyJZD8zfgzNfdU7t+S2hcOkqrA+vVDWIkm+H0q/i9itzhpmKIEkHqiKdACNHURIX2/q6i4U1uLjxZI5JRll9z3r/11vG5e/1VBpuUvD5KxnRL04dvxFl7Kj0dTEmJfhpxyGUUo8+mCEHrg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com;
- Cc: Pavel Begunkov <asml.silence@xxxxxxxxx>, Mike Snitzer <snitzer@xxxxxxxxxx>, Ryusuke Konishi <konishi.ryusuke@xxxxxxxxx>, Konstantin Komarov <almaz.alexandrovich@xxxxxxxxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, "Md . Haris Iqbal" <haris.iqbal@xxxxxxxxx>, Jack Wang <jinpu.wang@xxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxx>, Philipp Reisner <philipp.reisner@xxxxxxxxxx>, Lars Ellenberg <lars.ellenberg@xxxxxxxxxx>, "linux-block@xxxxxxxxxxxxxxx" <linux-block@xxxxxxxxxxxxxxx>, "dm-devel@xxxxxxxxxx" <dm-devel@xxxxxxxxxx>, "linux-fsdevel@xxxxxxxxxxxxxxx" <linux-fsdevel@xxxxxxxxxxxxxxx>, "linux-nfs@xxxxxxxxxxxxxxx" <linux-nfs@xxxxxxxxxxxxxxx>, "linux-nilfs@xxxxxxxxxxxxxxx" <linux-nilfs@xxxxxxxxxxxxxxx>, "ntfs3@xxxxxxxxxxxxxxx" <ntfs3@xxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "drbd-dev@xxxxxxxxxxxxxxxx" <drbd-dev@xxxxxxxxxxxxxxxx>
- Delivery-date: Tue, 18 Jan 2022 22:14:25 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHYDDwKKixcCpXXJkOK/9EcGjgKbKxpWP4A
- Thread-topic: [PATCH 17/19] block: pass a block_device and opf to bio_alloc
On 1/17/22 11:19 PM, Christoph Hellwig wrote:
> Pass the block_device and operation that we plan to use this bio for to
> bio_alloc to optimize the assigment. NULL/0 can be passed, both for the
's/assigment/assignment/'
> passthrough case on a raw request_queue and to temporarily avoid
> refactoring some nasty code.
>
> Also move the gfp_mask argument after the nr_vecs argument for a much
> more logical calling convention matching what most of the kernel does.
>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> ---
Looks good.
Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx>
|