Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1306504pxf; Fri, 12 Mar 2021 06:52:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZjR07GrBIiIyzfCdEw7uch/71X9m1AN8Xx6yPG9PvabSHFWrwiBNJzrP9MKz3idAqTPC/ X-Received: by 2002:a05:6402:2215:: with SMTP id cq21mr14957869edb.281.1615560776242; Fri, 12 Mar 2021 06:52:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615560776; cv=none; d=google.com; s=arc-20160816; b=F+vE+JJK6rHOUA0oCNyVO0oemARSK8mWLawFmNx4JN5Cn+hlHZPArzd6EmDh3kpqTj QdlatMPVNPGHDn/RbqcyoPUEmx27Rwn9mSziHG/xzgebCKTWpLn8GZ9PWJ54vhafmxmj 6g10Y4Ox1D7thvMI6ZFOA5QwF+1DK65LaU1BiqsQ2desxuhWTMuAML9s8haUXb2Ebynq R0GAaDeZhoEy57oi+PR/LJMedckWVkzMlrAJtgg93eOalmXfBAh+NFAZY3ZwAyeTiSP1 LS8ojjMIFbuJXbMNiPlqnqZBCg8zTvf0d3Y++cfJ2hcVBgHIgscKoU9fGLARYv7EuohG JJOQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LM5Fkq27zD/23Wlnsz4rK5ag2A/SI3en23Eg+bzZ2Gg=; b=KQNWwYMF6bBo3Dke5LsFIozl/BAEdPr2SQwIAgdrhbOoD90VETQgZE5eF5ErW4hsGu mvNQieWAjoXaH7IVc0YjYf3aCiK5l/WgFkbhNYs7O6NQDArkMrar6Trly5FHHueSPdB8 p+w0Bn5Ax0K0a6pRHzfkjF7NlvTW+W/mzMTQQkic9SG3+5F7RrEchSrbyTn/pD7ZkgeH ykm4roQOpKMuHsME5p09+/5wMmVGzYynm7lH+Qk/9Tibzk1Pb92edwKWW3c25Ks1BSRN tznEu/oh3VFYIqCH8F1prjkiEb6q+JGWPT2do71tkLvLGXqsOFHmr1x4juB1RRIXHNYF 2LnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tyaTRgv+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si1137452ejc.211.2021.03.12.06.52.32; Fri, 12 Mar 2021 06:52:56 -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=@linuxfoundation.org header.s=korg header.b=tyaTRgv+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231351AbhCLOtc (ORCPT + 99 others); Fri, 12 Mar 2021 09:49:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:37618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231557AbhCLOtU (ORCPT ); Fri, 12 Mar 2021 09:49:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 081A864FB3; Fri, 12 Mar 2021 14:49:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615560560; bh=cT289FKV3xsUZY63Dur1xgCbw90X01pELCM4fumbr9g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tyaTRgv+DMJOZFnymtjHoYQMgk2pX6AO8NSQY0vdION0nZOr8cyRC749jvLp05w0x xTABbuDrQBLOgyhsEyu9iKwvDd7D0V+lqMELqd245tPlB7Pp71BOpFp40B3DBHK1Mh fd6EI/z2R348qL8yYtJz51CSlLXj5OVIL8crAgkE= Date: Fri, 12 Mar 2021 15:49:18 +0100 From: Greg KH To: Daeho Jeong Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Subject: Re: [PATCH v4] f2fs: add sysfs nodes to get runtime compression stat Message-ID: References: <20210312122531.2717093-1-daeho43@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021 at 11:42:04PM +0900, Daeho Jeong wrote: > So, do you want we protect the values here with spin_lock and just > read without spin_lock in sysfs read part? I would not use any lock at all if this were my code. Remember, this is for debugging/information only, right? And the data is always "stale" so what is it going to be used for? thanks, greg k-h