From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36C97CD379F for ; Fri, 15 Sep 2023 20:27:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234228AbjIOU0y (ORCPT ); Fri, 15 Sep 2023 16:26:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237488AbjIOU0u (ORCPT ); Fri, 15 Sep 2023 16:26:50 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C38A0AF for ; Fri, 15 Sep 2023 13:26:38 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 77C6C1FD7D; Fri, 15 Sep 2023 20:26:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1694809597; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4pUVs87s+uWeb3C2GUy/26EsjzwMcHNlgSciVMuueGA=; b=W3BcxiLvFXvGXXAKN5GvR9VIb1vv9Ih942a4cx0zBx5GU7seSCCdEURpgO9Ew2R6fdVTdo +4a1nCQueTwgl6uokcEoPw3OW+VIPEayZvxCyDnMvrjNQeBZ7GH9G7cVceVKDUKXq2rJ1V NKf7ZAoFlioyRL1lNgfn2LjGvCu44xo= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2FC301358A; Fri, 15 Sep 2023 20:26:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id J/XlCf29BGUdEgAAMHmgww (envelope-from ); Fri, 15 Sep 2023 20:26:37 +0000 Message-ID: Subject: Re: [PATCH v11 08/34] scsi: Use separate buf for START_STOP in sd_spinup_disk From: Martin Wilck To: Mike Christie , john.g.garry@oracle.com, bvanassche@acm.org, hch@lst.de, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, james.bottomley@hansenpartnership.com Date: Fri, 15 Sep 2023 22:26:36 +0200 In-Reply-To: <20230905231547.83945-9-michael.christie@oracle.com> References: <20230905231547.83945-1-michael.christie@oracle.com> <20230905231547.83945-9-michael.christie@oracle.com> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On Tue, 2023-09-05 at 18:15 -0500, Mike Christie wrote: > We currently re-use the cmd buffer for the TUR and START_STOP > commands > which requires us to reset the buffer when retrying. This has us use > separate buffers for the 2 commands so we can make them const and I > think > it makes it easier to handle for retries but does not add too much > extra > to the stack use. >=20 > Signed-off-by: Mike Christie > Reviewed-by: Christoph Hellwig > Reviewed-by: John Garry Reviewed-by: Martin Wilck