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 picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AD3F9C3DA7F for ; Thu, 15 Aug 2024 07:30:00 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id D716F3D21A3 for ; Thu, 15 Aug 2024 09:29:58 +0200 (CEST) Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 912E63D218A for ; Thu, 15 Aug 2024 09:29:44 +0200 (CEST) Authentication-Results: in-6.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=195.135.223.131; helo=smtp-out2.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 066B91400B94 for ; Thu, 15 Aug 2024 09:29:42 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C16461FD0A; Thu, 15 Aug 2024 07:29:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1723706981; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Yr484reoDlIc0bgEYY1TtDqaLuAuIZrGdgZOwvVFg74=; b=wxDW2Ph/ekGYcy0oTkmMSuvHMLW9gEQbudL1MAlXLi/nbKLXoxjOxKfk9sXiZcXJoPnqfH UlGs7d5OkRRTOftxDd1+l783CyLw0s1QL6p1Geqi9bhphhQdGaEL4fZBC8aK4rmTM9apI3 FUxK4Pxua/TM93Ga9xWOjqslP0iPN90= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1723706981; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Yr484reoDlIc0bgEYY1TtDqaLuAuIZrGdgZOwvVFg74=; b=g2FEJoDREsZfxefCParXhwND1UUEo5/XnsUpKjBi73wVVoAsXDI0SjHUbyNQLH/rtlXDHR q32Xyee2fnwKzgDw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1723706981; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Yr484reoDlIc0bgEYY1TtDqaLuAuIZrGdgZOwvVFg74=; b=wxDW2Ph/ekGYcy0oTkmMSuvHMLW9gEQbudL1MAlXLi/nbKLXoxjOxKfk9sXiZcXJoPnqfH UlGs7d5OkRRTOftxDd1+l783CyLw0s1QL6p1Geqi9bhphhQdGaEL4fZBC8aK4rmTM9apI3 FUxK4Pxua/TM93Ga9xWOjqslP0iPN90= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1723706981; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Yr484reoDlIc0bgEYY1TtDqaLuAuIZrGdgZOwvVFg74=; b=g2FEJoDREsZfxefCParXhwND1UUEo5/XnsUpKjBi73wVVoAsXDI0SjHUbyNQLH/rtlXDHR q32Xyee2fnwKzgDw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 64D341342D; Thu, 15 Aug 2024 07:29:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id NTiwF2WuvWa0bAAAD6G6ig (envelope-from ); Thu, 15 Aug 2024 07:29:41 +0000 Date: Thu, 15 Aug 2024 09:29:35 +0200 From: Petr Vorel To: Jan Stancek Message-ID: <20240815072935.GA565878@pevik> References: <99d43982e2469b1423701b6772677173b5a53429.1723703723.git.jstancek@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <99d43982e2469b1423701b6772677173b5a53429.1723703723.git.jstancek@redhat.com> X-Spamd-Result: default: False [-7.50 / 50.00]; REPLY(-4.00)[]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; HAS_REPLYTO(0.30)[pvorel@suse.cz]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; RCPT_COUNT_THREE(0.00)[4]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; REPLYTO_EQ_FROM(0.00)[] X-Virus-Scanned: clamav-milter 1.0.3 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH] lib: make tst_detach_device_by_fd() also close dev_fd X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Petr Vorel Cc: liwan@redhat.com, gulam.mohamed@oracle.com, ltp@lists.linux.it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Hi Jan, thanks a lot for fixing this! Reviewed-by: Petr Vorel Tested-by: Petr Vorel Closes: https://github.com/linux-test-project/ltp/issues/1175 > Since commit 18048c1af783 ("loop: Fix a race between loop detach and loop open") > detach operation is deferred to the last close of the device. > Make tst_detach_device_by_fd() also close dev_fd, and leave it up to > caller to re-open it for further use. 6.11.0-rc3-2.g00af0c0-default Kind regards, Petr -- Mailing list info: https://lists.linux.it/listinfo/ltp