Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp42198pxh; Thu, 7 Apr 2022 13:24:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+5RfxUhfTumVPkDB5N+jKHq7hKYOw+QBfUfislIp+wST3XjWkboIT3te3MdXBMH7IwJqt X-Received: by 2002:aa7:9041:0:b0:4fe:3d6c:1739 with SMTP id n1-20020aa79041000000b004fe3d6c1739mr16051860pfo.13.1649363053326; Thu, 07 Apr 2022 13:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649363053; cv=none; d=google.com; s=arc-20160816; b=qGhXt02IsSWs5/tBTGCMvQGRmuQlX1rSsccZIgPniFVnhojtQKFS8x7mrA1RonPa4L LvqbJMj4116xROm96TKGxeVGqkqW+M50/nysyADJqiG5JkfQbfTBu41DU1tOa7V+mT3c INr1JAXZ+kGLtdp0q0eQLWZNOGdjBTLSerrGjpzQsL3DM/EeOcQRq/l342mG90FlcFpg yhrmMelTr4DHxQhntV65JMo3mX6wBKTTKW4XXw2KSH2Y/3SnnEoTWGmGp2u1T5Aq9+r9 SWZLnQU29p/90vD5QCJGFEld9tTcLtN18xJZq0pS38jUopo/lk530gmOHBZhhfeY/Dtr STMQ== 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=PtaTVgxupN/0HO97MuQqDQ+Mh4YJOFA6n+j/uG2nNE8=; b=ETRr2/LkDHvDDC9pMtNSoT5XUxuB5gJsQwjF5iINI+9TyscRC/v2l2xydHn9knRXRT O9qfeLCORbCW7y51Ic9gY3KGkcf4UUR+S2+nzyWbacSVCnEYAkOwXUfgmcT2PPC997TA A192q1LMV+3jhV2XTjrJpnNC4u2ltOIxU1/O4gm1rakRg6g5Kv1M+hhjwB3io/h06UeN DfP0HVgixRGEVvMYo9lxBJt8lnTrD/tJ/TqKp2r7QgsUErnHGMYoN+o7K3JP2bVzpFEM 4TKT2ftwgHPRtWDCphy88T+knWGRjqUTmUz8i6VpG7pZEgZb1Cj7F4M/Qj97SuYj+FJn wOZg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h185-20020a6253c2000000b004faec051bd4si18732303pfb.242.2022.04.07.13.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:24:13 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 294F83682C1; Thu, 7 Apr 2022 12:43:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241244AbiDGNez (ORCPT + 99 others); Thu, 7 Apr 2022 09:34:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343676AbiDGNeq (ORCPT ); Thu, 7 Apr 2022 09:34:46 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AC9C23ACAF; Thu, 7 Apr 2022 06:32:36 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 0AF3D68AFE; Thu, 7 Apr 2022 15:32:33 +0200 (CEST) Date: Thu, 7 Apr 2022 15:32:32 +0200 From: Christoph Hellwig To: John Garry Cc: damien.lemoal@opensource.wdc.com, hch@lst.de, linux-doc@vger.kernel.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] libata: Improve ATA queued command allocation Message-ID: <20220407133232.GA7092@lst.de> References: <1649333365-100672-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1649333365-100672-1-git-send-email-john.garry@huawei.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 > + qc = __ata_qc_from_tag(ap, tag); > + qc->tag = qc->hw_tag = tag; > + qc->scsicmd = NULL; > + qc->ap = ap; > + qc->dev = dev; > + > + ata_qc_reinit(qc); > + > + qc->scsicmd = cmd; My fault, byt we can remove the first qc->scsicmd a nothing looks at the field before this real initialization. Otherwise looks good: Reviewed-by: Christoph Hellwig