Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5451551pxb; Wed, 26 Jan 2022 12:16:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZB6UtHf1bLF/tKrFjQcXonLXZYqvE8KWJi6BUy6Y7l0KvHb949s9AB/3FREigD2H/RTMl X-Received: by 2002:a17:902:dac5:: with SMTP id q5mr93031plx.80.1643228205574; Wed, 26 Jan 2022 12:16:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643228205; cv=none; d=google.com; s=arc-20160816; b=y0hJ7pzQsyaZMKJaknHdpC/4SEVEco/s3+GWNwYAUTEs6SyptL1DEXamX7TwMhkNRP rM7chbffBDCeiofmoN3nhLvMionaK+CVQlbvxEhamK+iZBz4KSTQao1Id5MUlcgmi9sN 0lfDch7Iq4x8uVT+bwryNfYDbteBIHVZmIAshoAlSFk/OoGJRZhx6xJyAXpPCxPmyPMX HaP0rz9Uzp71a+wDH32dXn50ULouE+TbNSmhKK5lwMQJFhTOuMK056gWpcnJ6oonwymR SjuAwtcBAjJO/PZdZdW7AeHUxzj2jloJQpfl1XExz5VvP7FHqHxwsuF+fcgwwkdtjJh0 cczw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=IP+RMWpt0uTAbiL4Z8Uvd4U+E5TBgChxKWU4BBtSYdg=; b=grIj00PC/nngElx8mS6V4Sdxjcs+z1Xdm54iTa0b0MxMO6r6e7CbxQCMwhXbLqIxZj d/MnmaFGAyXVids/tOE/0x++WKvIOUNyrqKwSlyD8BHewXVCBjqwlYn5vGkqyYbOUqE+ 1hPd2/vHDfPtA3SXVxITpX1yl3UKpYDW/iB0lk4lO36+2Nxd6VkO422VDESY21t1iE7D foAUcVaAQjctN854S59J0UNJlraBs/QFXnA2L0dWDDauOD6DwxRSfM2DTJKisxYo5o6Q vV8O7NtMj7VBJVvruy4gpzH2+TJxUXiaghGojyuKaxtFNw4/6fBn/sbqi7s12soQFXTH vquQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=l9qnLpgP; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si253408pgm.685.2022.01.26.12.16.33; Wed, 26 Jan 2022 12:16:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=l9qnLpgP; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237653AbiAZHNQ (ORCPT + 99 others); Wed, 26 Jan 2022 02:13:16 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:38844 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237647AbiAZHNO (ORCPT ); Wed, 26 Jan 2022 02:13:14 -0500 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 AFC0F212BF; Wed, 26 Jan 2022 07:13:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1643181192; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IP+RMWpt0uTAbiL4Z8Uvd4U+E5TBgChxKWU4BBtSYdg=; b=l9qnLpgP7t/izLAl/CUfzO9Smi8X+J19SKmnVlg4lvq8P2fmotX4pv6XE2OlrowlTs82qB xSWUUo6CElgFjw5ggEZGP96/vLdrgKPqKbzCa4TXfyVtu+KA+4JoHs1niFMGHHP1kvlJQ5 eANbAHj0ke31iTT2T5Z/vDS4+pufPOM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1643181192; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IP+RMWpt0uTAbiL4Z8Uvd4U+E5TBgChxKWU4BBtSYdg=; b=WvA6baKVkHVONrRGzX/Msk1aNg9LrmBP0cVX+E+s8nwct/ddzxUX7IQ3KbHdx1nWFo2O6X NnnfPXvnMSyjnmBA== 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 6A16E13B56; Wed, 26 Jan 2022 07:13:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id sd8iGIj08GFiBQAAMHmgww (envelope-from ); Wed, 26 Jan 2022 07:13:12 +0000 Date: Wed, 26 Jan 2022 08:13:10 +0100 From: Petr Vorel To: "xuyang2018.jy@fujitsu.com" Cc: Shuah Khan , "linux-kselftest@vger.kernel.org" , "shuah@kernel.org" , "linux-kernel@vger.kernel.org" , "naresh.kamboju@linaro.org" , "aleksei.kodanev@bell-sw.com" Subject: Re: [PATCH 1/3] selftests/zram: Remove obsolete max_comp_streams interface Message-ID: Reply-To: Petr Vorel References: <1639562171-4434-1-git-send-email-xuyang2018.jy@fujitsu.com> <1146337d-718e-a369-1012-224f06bc9c2f@linuxfoundation.org> <61F0D9F7.1080200@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <61F0D9F7.1080200@fujitsu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, > on 2022/1/26 4:33, Shuah Khan wrote : > > On 12/15/21 2:56 AM, Yang Xu wrote: > >> Since kernel commit 43209ea2d17a ("zram: remove max_comp_streams > >> internals"), zram has > >> switched to per-cpu streams. Even kernel still keep this interface for > >> some reasons, but > >> writing to max_comp_stream doesn't take any effect. So remove it. > > I get that max_comp_stream doesn't do anything since this referenced > > commit. Don't we need this test on older kernels since older kernels > > still support max_comp_stream? > I read the following info from kernel selftest documentation > https://www.kernel.org/doc/html/latest/dev-tools/kselftest.html > "The kernel contains a set of “self tests” under the > tools/testing/selftests/ directory. These are intended to be small tests > to exercise individual code paths in the kernel. Tests are intended to > be run after building, installing and booting a kernel." > So, we can build older kernel(use older kernel source) if we want to > test older kernel. > IMO, kernel selftest is different from other testsuit(ie ltp, this > shuould think about api changes because ltp may test on different kernel). Yes, that's how I understand the difference with approach of in kselftest - the kernel tree testsuite and LTP - the out-of-tree testsuite. Kind regards, Petr > Also cc ltp co-maintainer Petr > Or, did I miss something? > Best Regards > Yang Xu > > thanks, > > -- Shuah