Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B2E0D1A429 for ; Mon, 14 Oct 2024 06:32:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RsP9TOIObkf5FRkgdQLteYcjsDXTBAy02FE8soe/kxs=; b=gI+BBD3Nn478kqyMb577Jq//r/ 2NDAqdfz4ACw2jqWqVNkTAyjm4glbOIz92G9/RLFtT9MbauiB/TT3c6X36qUBjKJlrS5rJE6NTv/w 7nKrUJ1A2jf5vFXF3+De9wn04GTUd1FLtEblL+6rfO0oqjrd/B5UoHurFlOL844qVe2a8wTwumj3T OMYCB1nHUDT7ohwV3SBlYh9s50fRYo93ZweGLg5gUExNoQK+s6Ipmu1Tnyz4sUg8MDMTtxYCxc+b+ cn6nOglHTRz0HT1+7K8vNhv3Mt7cIAdMJLFWzbYI3TBhwgP/oZye7UVTd7ku+H7+ANrIHKJMlKxoS Mh3gLAaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0Ed6-00000003u4B-1Lx2; Mon, 14 Oct 2024 06:32:32 +0000 Received: from out30-112.freemail.mail.aliyun.com ([115.124.30.112]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0Ebl-00000003tn8-2a0g for linux-nvme@lists.infradead.org; Mon, 14 Oct 2024 06:31:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1728887467; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=RsP9TOIObkf5FRkgdQLteYcjsDXTBAy02FE8soe/kxs=; b=fjrgcASHRoupzRDpAnVL1Ud4fAm9uKn1KJOKkoGmSNet6Gn+5aMAPXLX7cGfqfnsgGbRArF9q4wLL8KpTI7KB0YbtlosvSNvZhj0UhEN+ZhHMKWVcavUHwrZ2Kt4jn+TJUauDkfSu+PvP/k++KyfGpKMpSnF+r8UUqhCkO/uRuU= Received: from 30.178.81.252(mailfrom:kanie@linux.alibaba.com fp:SMTPD_---0WH1XTjz_1728887465 cluster:ay36) by smtp.aliyun-inc.com; Mon, 14 Oct 2024 14:31:06 +0800 Message-ID: Date: Mon, 14 Oct 2024 14:31:04 +0800 MIME-Version: 1.0 User-Agent: =?UTF-8?B?TW96aWxsYSBUaHVuZGVyYmlyZCDmtYvor5XniYg=?= Subject: Re: [PATCH v14 2/2] nvmet: support reservation feature To: Chaitanya Kulkarni Cc: "linux-nvme@lists.infradead.org" , "hch@lst.de" , "sagi@grimberg.me" References: <20241011022612.50303-1-kanie@linux.alibaba.com> <20241011022612.50303-3-kanie@linux.alibaba.com> <11a10ade-fa1b-4dad-9a80-1d1681e8bd0f@nvidia.com> <2328cc06-0353-4a31-9ff3-6595f9a88831@nvidia.com> From: Guixin Liu In-Reply-To: <2328cc06-0353-4a31-9ff3-6595f9a88831@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241013_233109_843507_38E4086A X-CRM114-Status: GOOD ( 12.91 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org 在 2024/10/14 14:18, Chaitanya Kulkarni 写道: > On 10/13/24 22:34, Guixin Liu wrote: >> New 6.12-rc2 add a commit >> 5f60d5f6bbc12e782fac78110b0ee62698f3b576("move asm/unaligned.h to >> linux/unaligned.h"), I change my code to fit this. >> >> Best Regards, >> >> Guixin Liu >> > Let's avoid top posting if we can for everyone else on the list. Oh, sorry. > So if we merge this patch then we have to make sure before we sent > the pull request above commit (f3b576) is in the tree, otherwise kernel > test robot mentioned in [1] will start complaining ? Yes, commit (f3b576) changed all "#include " to "#include ", I think we should do a rebase before sending the pull request. Best Regards, Guixin Liu >> 在 2024/10/14 12:04, Chaitanya Kulkarni 写道: >>> On 10/10/24 19:26, Guixin Liu wrote: >>>> diff --git a/drivers/nvme/target/pr.c b/drivers/nvme/target/pr.c >>>> new file mode 100644 >>>> index 000000000000..5f3b9861533e >>>> --- /dev/null >>>> +++ b/drivers/nvme/target/pr.c >>>> @@ -0,0 +1,1162 @@ >>>> +// SPDX-License-Identifier: GPL-2.0 >>>> +/* >>>> + * NVMe over Fabrics Persist Reservation. >>>> + * Copyright (c) 2024 Guixin Liu, Alibaba Group. >>>> + * All rights reserved. >>>> + */ >>>> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt >>>> +#include >>>> +#include >>>> +#include "nvmet.h" >>> I'm running into error when trying to test this code [1], >>> with following seems to fix it on my platformcan you >>> check ?:- >>> >>> diff --git a/drivers/nvme/target/pr.c b/drivers/nvme/target/pr.c >>> index 5f3b9861533e..000c83fbda52 100644 >>> --- a/drivers/nvme/target/pr.c >>> +++ b/drivers/nvme/target/pr.c >>> @@ -5,7 +5,7 @@ >>>     * All rights reserved. >>>     */ >>>    #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt >>> -#include >>> +#include >>>    #include >>>    #include "nvmet.h" >>> >>> -ck >>> >>> >>> [1] >>> >>> nvme (nvme-6.12) # make M=drivers/nvme/target/ >>>     CC [M]  drivers/nvme/target/pr.o >>> drivers/nvme/target/pr.c:8:10: fatal error: linux/unaligned.h: No such >>> file or directory >>>       8 | #include >>>         |          ^~~~~~~~~~~~~~~~~~~ >>> compilation terminated. >>> make[2]: *** [scripts/Makefile.build:229: drivers/nvme/target/pr.o] >>> Error 1 >>> make[1]: *** [/mnt/data/nvme/Makefile:1936: drivers/nvme/target] Error 2 >>> make: *** [Makefile:224: __sub-make] Error 2 >>> >>> nvme (nvme-6.12) # git diff >>> diff --git a/drivers/nvme/target/pr.c b/drivers/nvme/target/pr.c >>> index 5f3b9861533e..000c83fbda52 100644 >>> --- a/drivers/nvme/target/pr.c >>> +++ b/drivers/nvme/target/pr.c >>> @@ -5,7 +5,7 @@ >>>     * All rights reserved. >>>     */ >>>    #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt >>> -#include >>> +#include >>>    #include >>>    #include "nvmet.h" >>> >>> nvme (nvme-6.12) # git apply pr-fix.diff >>> >>> nvme (nvme-6.12) # make M=drivers/nvme/target/ >>>     CC [M]  drivers/nvme/target/pr.o >>>     LD [M]  drivers/nvme/target/nvmet.o >>>     MODPOST drivers/nvme/target/Module.symvers >>>     CC [M]  drivers/nvme/target/.module-common.o >>>     LD [M]  drivers/nvme/target/nvmet.ko >>>     LD [M]  drivers/nvme/target/nvme-loop.ko >>>     LD [M]  drivers/nvme/target/nvmet-rdma.ko >>>     LD [M]  drivers/nvme/target/nvmet-fc.ko >>>     LD [M]  drivers/nvme/target/nvme-fcloop.ko >>>     LD [M]  drivers/nvme/target/nvmet-tcp.ko >>> nvme (nvme-6.12) # >>> >>> > -ck > > [1] > > E.g. > https://lists.infradead.org/pipermail/linux-nvme/2024-September/049831.html > >