Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp51722pxm; Wed, 2 Mar 2022 10:14:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUZgXY5i3XJ2nJS9vnwls+6iOxPzwMaTTpKk6/iT2psdqlNW0F8TuxnjJdc++BDTNwJHtd X-Received: by 2002:a17:907:3e0d:b0:6d1:a0bc:2737 with SMTP id hp13-20020a1709073e0d00b006d1a0bc2737mr23552066ejc.634.1646244854215; Wed, 02 Mar 2022 10:14:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646244854; cv=none; d=google.com; s=arc-20160816; b=huo7hcfL9NjKIFXwTJ4H/ITDbBCP1hLl7cHBfA9Uv1nEDnViT0Frz5Wj4z8gAkMzJk jAbU2ot1TCGCxOOk+vBe5ntZp5dC8v7v/BuPXZrkInX4LRcNdAvuFt2X+Zx8yTrXZ6TI gIBrb9tgME8TvWDpZZErvgwR5bgYcJlgfNoZ1ePZ1erL7iQamWNroUBc8YhJh0kbEACS xKNLvPmkgXMk1hZaOjAFBucX5mhStD92MDYD1eU3XHoK65sgm9ixh2NJQTTTyD618bzN Cj7Mx9UhGBZA5DnnSg/SbFP+upejPa+LgydJX0Ns5bYskZEFeyH/1Wr85kzYQdZEwqIw yPvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Yfk2Zok3t0Vw4DfsAGuxBuROVgr+WDNIArMCRZveyF4=; b=t/YnjzRLxfyMK9pBTEyuRHzAjIlqMdgdBcAzxS5pZfAjLUftqo5fXKc0wpxXHzMAyJ 6TpK8rhOYMOYvRl8NaWA7Pw5nDg6qLpBwMpBZycBohwl/V3vFupr1GESj43+XbeU1Igk +6WQ/L1tfBt1Evt7KTkGpm9sJH81jITsmYsNxwANu977XO85zJP8JC/Yx6Ta0UeOmqOJ wwWXem2DEDZomx5o5JQUl7NACSoeI/XK0IevkC7//gEwSw0Qr1dGbjji7zLeYejT7b7l 2sDaumuzAxc6LewhrBvV932YfkIe41ylpTvqxLWLm3G8X/CGl696Zg5+15ypM9s0CKYx ON3Q== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020aa7cb8d000000b00410feba3c8bsi11385880edt.242.2022.03.02.10.13.50; Wed, 02 Mar 2022 10:14:14 -0800 (PST) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240691AbiCBN0k (ORCPT + 99 others); Wed, 2 Mar 2022 08:26:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235127AbiCBN0j (ORCPT ); Wed, 2 Mar 2022 08:26:39 -0500 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2566B2DE7; Wed, 2 Mar 2022 05:25:56 -0800 (PST) Received: by mail-wr1-f41.google.com with SMTP id u10so1157923wra.9; Wed, 02 Mar 2022 05:25:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Yfk2Zok3t0Vw4DfsAGuxBuROVgr+WDNIArMCRZveyF4=; b=38RULZBLzeLYqBQseMsdtz8ClmrRKdoqGLLgIiTprzgnckHdp4K3LJy6n7VPi0A6fG Y09RXooWOc2hACNCqRMGgxeO3QBUie5R5GWxOp7HsPIdj4Fm5TnLjQrkPqXbBaFJPcEc N6yOdS6/ot6x0/Edg/1+mg1hvFKU6a0yHCuIas7TEBQAeAU8+xXi4Ji3JvnYLFFLGxtq qUBvoJrvrazi1Z044wv7lPpWm3D3j9jIbelttejp1CGcMw0Jl0llbl5/eit8vfl7qRBr LChWPRTfx/F9hT+Fh4RgzVK4y+bQCdfrL6AA0IdZPAraE/MJn24WIwCH/ycZp6URqlAm KvqA== X-Gm-Message-State: AOAM531AG4yIpPIT93jxpCc34y3+WP7/jkBdo7uIdz0Gk0/auLMty+P4 h5f630N/6U9KFcmrBjvTFNF+2Bvq39Q= X-Received: by 2002:a5d:6488:0:b0:1ea:7ff1:93e with SMTP id o8-20020a5d6488000000b001ea7ff1093emr24307485wri.284.1646227554586; Wed, 02 Mar 2022 05:25:54 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id d18-20020adff2d2000000b001f025ea3a20sm3657228wrp.0.2022.03.02.05.25.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 05:25:54 -0800 (PST) Date: Wed, 2 Mar 2022 13:25:52 +0000 From: Wei Liu To: Iouri Tarassov Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, spronovo@microsoft.com, spronovo@linux.microsoft.com, gregkh@linuxfoundation.org Subject: Re: [PATCH v3 10/30] drivers: hv: dxgkrnl: Creation of compute device sync objects Message-ID: <20220302132552.bssianizq25c3fu4@liuwe-devbox-debian-v2> References: <719fe06b7cbe9ac12fa4a729e810e3383ab421c1.1646163378.git.iourit@linux.microsoft.com> <438c7537f0b5b8f6f5afc35f968a3cf38047d290.1646163378.git.iourit@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <438c7537f0b5b8f6f5afc35f968a3cf38047d290.1646163378.git.iourit@linux.microsoft.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Mar 01, 2022 at 11:45:57AM -0800, Iouri Tarassov wrote: [...] > +void dxgadapter_remove_syncobj(struct dxgsyncobject *object) > +{ > + down_write(&object->adapter->shared_resource_list_lock); > + if (object->syncobj_list_entry.next) { > + list_del(&object->syncobj_list_entry); > + object->syncobj_list_entry.next = NULL; > + } Just use list_del here. Thanks, Wei.