Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp744244pxb; Wed, 8 Sep 2021 11:14:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+dUMk34ReEjan+cIW8WAU2yLVdJUszLpged9g8SgLmy6+P8BPC8a1nIR3u/rwakg3c4kE X-Received: by 2002:a5d:9355:: with SMTP id i21mr1057235ioo.12.1631124855649; Wed, 08 Sep 2021 11:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631124855; cv=none; d=google.com; s=arc-20160816; b=j7x6DJffDKq2DVEaSjVSZiUJtSBkcP4Su6dRuppeyqgeHhpRfJLxVBz8zIBY+oezFn PrLcnMsYWfZsm798vcUS9PnZvcfAYw4RtR7Y/YijN8jli3cF6LNfWC1IWCLOS/qF4U8P ujG5H3W394pFIIWD4GMPlmsIFLhjl5aRoiO1r+nMUch/I3QRzAGuNORb9vkTKVmcsk2x 8kHcs4s0MDwxcp/ZWAlTxV0XNIWQtOH/NZWSAGjN+tlAX/3UJ2r8CUtekh0bEGUiiWCB swNR5T0e90UKaSsUzvz1tQ462anu3k2EPs1VVrzPKBckswpb9tVZwGg3Ia6zO0TLy7cX 5LHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Yc71H5RTy1X6BFebGWkwSUHN1SaNh9qhQGAOKwD3wvQ=; b=q39SrsovFQW3nfvQ7a7nqyDP5bVrSWHxtVYwDKBQW/79A3/5ifGG8tTHDjdPL50Z5w uxt2/vlm12mCtPwOmUv7yKfru0n5+JJ1uXjyOz5MsHk+6ozOlRwjMhpiCb79IZCjp34o R3xRo0B/VEhH5iYPsuVF9d9XgQR3tpRp3G29+TS8z/cEFacPE4fFjIjj+IrrNMCpJ/l0 ttjOpmIenGt/sXmT48BFwhuPyFs2/RpkbzGmLOGwBDKNNnOggvNFbB1/8ZgoegnnjeiO bq9ieADIcTcmmxm7c6BmpJybGPz9niVyEj0nL2xmyVQKwTw5jJF2qta6iZXI9kqIWAKP IUBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si3124899iow.65.2021.09.08.11.14.00; Wed, 08 Sep 2021 11:14:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349914AbhIHQoX (ORCPT + 99 others); Wed, 8 Sep 2021 12:44:23 -0400 Received: from mga09.intel.com ([134.134.136.24]:11308 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352100AbhIHQoU (ORCPT ); Wed, 8 Sep 2021 12:44:20 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10101"; a="220568725" X-IronPort-AV: E=Sophos;i="5.85,278,1624345200"; d="scan'208";a="220568725" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2021 09:43:09 -0700 X-IronPort-AV: E=Sophos;i="5.85,278,1624345200"; d="scan'208";a="538868167" Received: from djiang5-mobl1.amr.corp.intel.com (HELO [10.212.120.104]) ([10.212.120.104]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2021 09:43:09 -0700 Subject: Re: [PATCH -next] dmaengine: idxd: Use list_move_tail instead of list_del/list_add_tail To: Bixuan Cui , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Cc: vkoul@kernel.org, john.wanghui@huawei.com References: <20210908092826.67765-1-cuibixuan@huawei.com> From: Dave Jiang Message-ID: <54e2f5a5-9593-85f8-e00a-8638de5bbc60@intel.com> Date: Wed, 8 Sep 2021 09:43:08 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210908092826.67765-1-cuibixuan@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/8/2021 2:28 AM, Bixuan Cui wrote: > Using list_move_tail() instead of list_del() + list_add_tail() > > Reported-by: Hulk Robot > Signed-off-by: Bixuan Cui Thanks! Acked-by: Dave Jiang > --- > drivers/dma/idxd/irq.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/dma/idxd/irq.c b/drivers/dma/idxd/irq.c > index ca88fa7a328e..79fcfc4883e4 100644 > --- a/drivers/dma/idxd/irq.c > +++ b/drivers/dma/idxd/irq.c > @@ -221,8 +221,7 @@ static void irq_process_work_list(struct idxd_irq_entry *irq_entry) > > list_for_each_entry_safe(desc, n, &irq_entry->work_list, list) { > if (desc->completion->status) { > - list_del(&desc->list); > - list_add_tail(&desc->list, &flist); > + list_move_tail(&desc->list, &flist); > } > } >