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 8BF3FC6FA8A for ; Wed, 14 Sep 2022 13:43:48 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id C9E013CAC13 for ; Wed, 14 Sep 2022 15:43:45 +0200 (CEST) Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id DBE803CA900 for ; Wed, 14 Sep 2022 15:43:35 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) (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-3.smtp.seeweb.it (Postfix) with ESMTPS id 722C81A0153A for ; Wed, 14 Sep 2022 15:43:34 +0200 (CEST) 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 7A80B3388D for ; Wed, 14 Sep 2022 13:43:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1663163014; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eqvL2zdd5NwjlCPHrN3pm5bb032r0BeBQgaIrgxg3hk=; b=wnL3GIR/hE3oG3MS0jNB9TCdyl6RIHc5J0a1+MqojXEe7KNOUiyPkNBc6SKrJ6m1v1qhyG Zi6i4PaWOPhhgZoseePpkb8U3s52MBxycQosPuercZDVwrE895KcRW3yTkj8MFik48ln/v Rd+iMtbZm+ea9JobEeoiMFSL+RZ030s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1663163014; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eqvL2zdd5NwjlCPHrN3pm5bb032r0BeBQgaIrgxg3hk=; b=V0hCmSV4jrc2mLE8V6hk7ifMpooY7NOHPiN49fIYbA9YubKjQS/A2+uuD2/nRgoLa9i+1P 50HF5R5bUeKuPZAg== 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 5D47113494 for ; Wed, 14 Sep 2022 13:43:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id DTTXFYbaIWN1IgAAMHmgww (envelope-from ) for ; Wed, 14 Sep 2022 13:43:34 +0000 From: Martin Doucha To: ltp@lists.linux.it Date: Wed, 14 Sep 2022 15:43:30 +0200 Message-Id: <20220914134333.13562-1-mdoucha@suse.cz> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-3.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v2 0/3] Fix ADSP074 timeouts 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" ADSP074 runs dio_sparse with extreme number of children which can result in severe system overload and random test timeouts simply because the main test process gets blocked by scheduler for 30+ seconds. Make io_read() aware of max_runtime and redesign child failure detection to fix the timeouts. Also fixes a bug in io_read() which could have caused false negatives. Martin Doucha (3): Add tst_validate_children() helper function Make io_read() runtime-aware dio_sparse: Fix child exit code include/tst_test.h | 8 ++++++++ lib/tst_status.c | 20 +++++++++++++++++++ .../kernel/io/ltp-aiodio/aiodio_sparse.c | 9 +++------ testcases/kernel/io/ltp-aiodio/common.h | 8 +++++--- testcases/kernel/io/ltp-aiodio/dio_sparse.c | 8 ++------ 5 files changed, 38 insertions(+), 15 deletions(-) -- 2.37.3 -- Mailing list info: https://lists.linux.it/listinfo/ltp