Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp67651iol; Wed, 8 Jun 2022 22:06:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG7Ag7YdZs55TJJfBC9f9KVOCdSgQyjot8PZmtfLYFZIcAC/YwrPRiGaKdT++7wgHnzpmx X-Received: by 2002:a17:906:5d0d:b0:711:d49f:e353 with SMTP id g13-20020a1709065d0d00b00711d49fe353mr16416625ejt.381.1654751172588; Wed, 08 Jun 2022 22:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654751172; cv=none; d=google.com; s=arc-20160816; b=uF7YYsGPNe3ufsk7b4jOHeGhueP0Oz6Sy95qL54jKslQzJMB6sL+0vz/Y1tuMzS/Lx vsQG9/PK8ecgog063EmD8633Mwuo55Qlpk/FnwD5Oj8KPDuHlcgLxTFR2/wB5Tc+tfgS BPV9j/jRyFo71tzZwY9W3JJL14XPsXWtCMDAi6RFzwuadlquDOMldHXjm0/lJNzp4Gkr km9pRVRz8EqiDqa9tXJ49vuyt/cQ/zXRPQaaPC3kyvLYUD+/nob8cRMM7sS03zxCyHJ4 U6oF189HTosgiLCk6H74CqjLZbh8o3+u8geVyKL0rFb7M2TwLEzk+DS0gJwGe9roDEse 29JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=dyrOl2fnh3ngmzdzyiCKj9j/g1dTURQMZZI1GGmEGH4=; b=A4roU/6OQRCToKX7MF+tnkRVR038SONOh4kFGjme6e6S7nyOQxiRh5fqeAeOwEtGaj FllGrVAP8VTZ3sip/DgMMu+B9AV9u/xXUhM0sPMTc8XEEW1G1SfXuK5oo61MStdrG8q8 leQ1IBaANO2IgjN110yvRU+SHoC0vxQP9pWWkSiAqH9ExgWKMGTc4U2lSuM+8kG8oqSc E9XSFC9DMYKDMXz+W2KMvF7O9IYDFaf6nm+XvcI2h9tbbpJ9wzat96XCxrqQVhAXtRYX QnUOLT4v3D2IrSEmB2tbGsztBLmn+uWxB3Mc3mKUBqRWf5KeIVKjh3Dduht7e9Z9ZXCM PSVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a056402028800b00423f052f4b3si17047818edv.201.2022.06.08.22.05.45; Wed, 08 Jun 2022 22:06:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231722AbiFIE7c (ORCPT + 99 others); Thu, 9 Jun 2022 00:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237025AbiFIE7a (ORCPT ); Thu, 9 Jun 2022 00:59:30 -0400 Received: from smtp.smtpout.orange.fr (smtp01.smtpout.orange.fr [80.12.242.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 712D01E4BE5 for ; Wed, 8 Jun 2022 21:59:27 -0700 (PDT) Received: from [192.168.1.18] ([90.11.190.129]) by smtp.orange.fr with ESMTPA id zAGRnsqeNk3ICzAGRnIqe6; Thu, 09 Jun 2022 06:59:25 +0200 X-ME-Helo: [192.168.1.18] X-ME-Auth: YWZlNiIxYWMyZDliZWIzOTcwYTEyYzlhMmU3ZiQ1M2U2MzfzZDfyZTMxZTBkMTYyNDBjNDJlZmQ3ZQ== X-ME-Date: Thu, 09 Jun 2022 06:59:25 +0200 X-ME-IP: 90.11.190.129 Message-ID: <22584780-a2eb-0a83-daaa-f259aa2adc42@wanadoo.fr> Date: Thu, 9 Jun 2022 06:59:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] virtio: Directly use ida_alloc_range()/ida_free() Content-Language: en-US To: =?UTF-8?B?dG9tb3Jyb3cgV2FuZyAo546L5b635piOKQ==?= , "mst@redhat.com" , "jasowang@redhat.com" Cc: "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: From: Christophe JAILLET In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 09/06/2022 à 02:42, tomorrow Wang (王德明) a écrit : >> >> An explanation in the commit log of why the -1 is needed would also help >> reviewer/maintainer, IMHO. >> >> It IS correct, but it is not that obvious without looking at >> ida_simple_get() and ida_alloc_range(). >> > > can I mention one patch about repair ida_free for this. > > If you manage to find another patch and provide a lore.kernel.org link to it, I think it should be okay. However, after a *quick* look in some mailing list, I've not found yet a description for that. CJ