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 2F57DC433EF for ; Wed, 30 Mar 2022 09:23:38 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 160413C9F4E for ; Wed, 30 Mar 2022 11:23:36 +0200 (CEST) Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2]) (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 AACE53C089F for ; Wed, 30 Mar 2022 11:23:22 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (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-2.smtp.seeweb.it (Postfix) with ESMTPS id 5C5C760004A for ; Wed, 30 Mar 2022 11:23:21 +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 6D902210FC; Wed, 30 Mar 2022 09:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1648632201; h=from:from: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=DSt8H6/L9YDBYRRf79rnBIwrHb5vtExVMBr/ie1GD2c=; b=H9LZCslol3HCfysDz8ifVCMAGxZICRK+gWJpKe5qdbUJTFeJqlyZ/AlvzP3DlJRGU3ITw/ fvXTHdeY+CltKgxPfmbRR+dz1cnOSzMdMLgGHUL5aIgPfHtbZTbToLEIMvNhRzkoZVRzWx uhGpoeWikKQh1UFHY/FLUC/6sv9lCMU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1648632201; h=from:from: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=DSt8H6/L9YDBYRRf79rnBIwrHb5vtExVMBr/ie1GD2c=; b=FNe77GoH9nHHr8Mf1YmM7Kma5t682b2tyX/tVZG3HiCZx3ZyHTBPuyK7padUrrCa90wFgk DbY8EEda5gFcFBAA== 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 5986113A60; Wed, 30 Mar 2022 09:23:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id e84IFYkhRGIFWgAAMHmgww (envelope-from ); Wed, 30 Mar 2022 09:23:21 +0000 Date: Wed, 30 Mar 2022 11:25:41 +0200 From: Cyril Hrubis To: Petr Vorel Message-ID: References: <20220328123114.31881-1-andrea.cervesato@suse.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Virus-Scanned: clamav-milter 0.102.4 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH v1] Fix wqueue09 according with 5.17 kernel updates 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: , Cc: 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! > FYI while test works on small -i, it blocks on higher: > > ./wqueue09 -i1000 > ... > common.h:153: TINFO: NOTIFY[000]: ty=000000 sy=01 i=00000008 > wqueue09.c:48: TPASS: Meta loss notification received > common.h:134: TINFO: Reading watch queue events > common.h:153: TINFO: NOTIFY[000]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[010]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[020]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[030]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[040]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[050]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[060]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[070]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[080]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[090]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[0a0]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[0b0]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[0c0]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[0d0]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[0e0]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[0f0]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[100]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[110]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[120]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[130]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[140]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[150]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[160]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[170]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[180]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[190]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[1a0]: ty=000001 sy=01 i=00000110 > common.h:134: TINFO: Reading watch queue events > common.h:153: TINFO: NOTIFY[000]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[010]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[020]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[030]: ty=000001 sy=01 i=00000110 > common.h:153: TINFO: NOTIFY[040]: ty=000001 sy=01 i=00000110 > common.h:134: TINFO: Reading watch queue events > common.h:153: TINFO: NOTIFY[000]: ty=000000 sy=01 i=00000008 > wqueue09.c:48: TPASS: Meta loss notification received > common.h:134: TINFO: Reading watch queue events > => timeouts > > I tested this on ppc64le with 65k page size on 5.17.0-rc5-150400.9-default > But it's not page size specific, as it fails also on x86_64 with the default 4k > page size. That would mean that the keyctl() operations did fail, I guess that we should check the results of these calls. > And *without* this patch it's also broken with higher -i (tested on both x86_64 > with the default 4k page size and ppc64le with 65k): > > ./wqueue09 -i1000 > wqueue09.c:48: TPASS: Meta loss notification received > common.h:134: TINFO: Reading watch queue events > common.h:152: TINFO: NOTIFY[000]: ty=000001 sy=01 i=00000110 > common.h:134: TINFO: Reading watch queue events > common.h:152: TINFO: NOTIFY[000]: ty=000000 sy=01 i=00000008 > wqueue09.c:48: TPASS: Meta loss notification received > common.h:86: TBROK: add_key error: EDQUOT This may be solveable by moving the add_key() call to the test setup. -- Cyril Hrubis chrubis@suse.cz -- Mailing list info: https://lists.linux.it/listinfo/ltp