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 EC933EE57DF for ; Mon, 11 Sep 2023 06:58:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231561AbjIKG6y (ORCPT ); Mon, 11 Sep 2023 02:58:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234567AbjIKG6y (ORCPT ); Mon, 11 Sep 2023 02:58:54 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83D6118D; Sun, 10 Sep 2023 23:58:35 -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-out1.suse.de (Postfix) with ESMTPS id 3CE2121836; Mon, 11 Sep 2023 06:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1694415514; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NkD+jL1F35aSf1/zL5domZoT4YIXsHDfM81/ToKPYSg=; b=nfgwQnom7LqRlTOJf0VWjgZ9V30cdNGb7IELlhEqa1JxNREyr9ZEob98bTgfbt1pPWynRj 2WROKFsehegVFtAZ4jovrX37UlmkVoUmfG1ZZKzhD/513Ie/mK2R/l4LSZOcHlgPq6x3Qu MPoPol4PQ8l8M9LGs2nWWfbi1Z5u2rI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1694415514; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NkD+jL1F35aSf1/zL5domZoT4YIXsHDfM81/ToKPYSg=; b=0LtlSj0AdU1umUTa+5RVzT7XgWfgKQFP4A3cSXB7r0AYUUyeAIc9vRr82pN2XyD0wZxrtx JbDO7M58mmHETxBg== 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 DAB8B13780; Mon, 11 Sep 2023 06:58:33 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id yDHdMpm6/mSIUwAAMHmgww (envelope-from ); Mon, 11 Sep 2023 06:58:33 +0000 Message-ID: Date: Mon, 11 Sep 2023 08:58:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 10/19] ata: libata-core: Synchronize ata_port_detach() with hotplug Content-Language: en-US To: Damien Le Moal , linux-ide@vger.kernel.org Cc: linux-scsi@vger.kernel.org, "Martin K . Petersen" , John Garry , Rodrigo Vivi , Paul Ausbeck , Kai-Heng Feng , Joe Breuer References: <20230911040217.253905-1-dlemoal@kernel.org> <20230911040217.253905-11-dlemoal@kernel.org> From: Hannes Reinecke In-Reply-To: <20230911040217.253905-11-dlemoal@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org On 9/11/23 06:02, Damien Le Moal wrote: > The call to async_synchronize_cookie() to synchronize a port removal > and hotplug probe is done in ata_host_detach() right before calling > ata_port_detach(). Move this call at the beginning of ata_port_detach() > to ensure that this operation is always synchronized with probe. > > Signed-off-by: Damien Le Moal > --- > drivers/ata/libata-core.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman