Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9213858rwp; Thu, 20 Jul 2023 01:02:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlFjlFR90RuQNqUmnl9GX0UoO1cOCIGRJm4y+b6z22FgymLtPDpnO5qoqyGnBCJuQPDOUypa X-Received: by 2002:a19:8c1d:0:b0:4fb:8aeb:d9be with SMTP id o29-20020a198c1d000000b004fb8aebd9bemr1495719lfd.30.1689840145643; Thu, 20 Jul 2023 01:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689840145; cv=none; d=google.com; s=arc-20160816; b=XCxDkJBTC50VB7ci3TjtAbU/db54qAigNjLFiKcLLDc0eUgJSgAe1zWW1HuzBbPAo/ N0Os7nhIn9YMfqBBkJrJKfZOo2Kcm3FKcW9Ka1vQAlh6Vg1TbKeP0k6tKmS0niLYiP9+ tqmlzDMMnv6RRtZfiD4+lcSepw0w5/KHrmtkG7Kw1/dJsCwi3Fi9qE1cCTbshxc+dXgN UW5tdwOjDsEsdMF/wPSYLz2RXurhEqZ7W3NSeEk9s6qtDbWWMRHcxVagPlNbheJ3XxJg QTklKgLepGbpjtSJ8ys7RROHgDvcwWGJA8DdZllVofxAE4niJ7oJT0ydSPu7OV5n0sgs zMSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=yhF0cx6hm3PrCSVmgGfJR0yRs2MYaKVN5hZf0U929Mg=; fh=ZUw18KJiJzFgOIjNQkZuBfwlEPPRV5ZrzvLpNlqPGmo=; b=wdGkijgtS+VOHBtqtXcotwSmglIlRh7m3DvJtJb+ICxeArxXKkr4d70zJFWrYzbgz7 b/eEnVXsAqwAHI/BnAuY48TqsXOrNn9nPf3WjHHN/cHQRvBs95+SJkJaYRkWWy/Mkzwi Zpl+f0MWhpYFayJUOL6mcF+zWUYYox1Bk7FJMAHGPiXGQWdL15Joe4xl3DdAUCJnb/MZ IPT99d42ey29lRn5pQByTjZjh05vhvgQ0iBOUTftoSb5XBv8lGF8kwuvZMNGEFjron3S h8voVI+IQov3GZwyXpDRs+XfRYN+B9c5SdL/rIbnNuZRmwYthgKHr2S2T/s3PDqVaS6h SGRA== 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 e4-20020a056402148400b00521d22e8503si476407edv.619.2023.07.20.01.02.00; Thu, 20 Jul 2023 01:02:25 -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 S230397AbjGTGrx (ORCPT + 99 others); Thu, 20 Jul 2023 02:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230514AbjGTGrv (ORCPT ); Thu, 20 Jul 2023 02:47:51 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A75F4135; Wed, 19 Jul 2023 23:47:50 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 0C93467373; Thu, 20 Jul 2023 08:47:45 +0200 (CEST) Date: Thu, 20 Jul 2023 08:47:44 +0200 From: Christoph Hellwig To: Petr Tesarik Cc: Stefano Stabellini , Russell King , Thomas Bogendoerfer , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Greg Kroah-Hartman , "Rafael J. Wysocki" , Juergen Gross , Oleksandr Tyshchenko , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Petr Tesarik , Jonathan Corbet , Andy Shevchenko , Hans de Goede , James Seo , James Clark , Kees Cook , "moderated list:XEN HYPERVISOR ARM" , "moderated list:ARM PORT" , open list , "open list:MIPS" , "open list:XEN SWIOTLB SUBSYSTEM" , Roberto Sassu , Kefeng Wang , petr@tesarici.cz Subject: Re: [PATCH v4 8/8] swiotlb: search the software IO TLB only if a device makes use of it Message-ID: <20230720064744.GA4395@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,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 Any reason this can't just do a list_empty_careful on the list instead of adding yet another field that grows struct device?