Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4171377pxb; Mon, 1 Feb 2021 14:37:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUgPjjhYbCgeQtbmVOSuzelvGy7JVmcmx6NkOLYMYf3pqdPlpBHVq5cm9XcOC6HhMbChaC X-Received: by 2002:a17:906:d8a1:: with SMTP id qc1mr12943871ejb.523.1612219025522; Mon, 01 Feb 2021 14:37:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612219025; cv=none; d=google.com; s=arc-20160816; b=ehySLEtAmlqVGKjG8PscWo4Xz/ynmrfTruY0dzeAhQXw6EGNxqaNGMF8tpWPGJQHiy MFfpX6JpbEr7RsxHKmdu4232b62ou/n5kLIhQ/3X6oZo3JVDwqV8xsXkicnJU17+dhhT +KChywnC9X6rPaAVdZJaYq/3B6+UCfRcOfVnHu+MQocxYKxno0HKERS6XByAqnGgdE1Y XQiWlR68bZJ35c/zm9QKvfj/K1aZl0WbZu5WNxeoSrUmhQnM+jPa48FM6mNkRcEOX+oz iut1eEz+lZaTxaR2G9egpzwrF/E1/Ug2Q9zIREtnCVvz0ix0/8kRzbXN3ju3o8dIjkBX 3YYA== 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=jgMtkc5PRzjWid9HOM3Tvg9CniFTIMb2f9sl7ix7rsk=; b=YsDRVQYiFr+Nhnj/mV27w3yMV0RlbMzowqZ9dXE78KP2vpW4PELAuBvaWoFWBngp+t TD35hGhhQ00yfnaz90qiolPw189NYBC5WK5oKzC9i83S+fPD7wyy4/u/051pEvdyxCEl +k6evP9UFfnRq5j6FDiaBqtGFyU8c9rcCBg4OFLOQ7WQBqIuq8rRIFDoKuo8dSNXPlHD S/cIt1oHh+CmFNP6Zuu8QwSUXkXN7IiWaVQPY5zPwikiNNK88eTAWMRT7VPY6ZdiiZI9 21BLkz26oxFvvIukIP4aOU26aRCdooE0LHem/XGoPAz9LNPqJvVoQr01OzhTI6Yykarv kJ2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="hjc/+kX+"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g25si3243043edr.526.2021.02.01.14.36.40; Mon, 01 Feb 2021 14:37:05 -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=@kernel.org header.s=k20201202 header.b="hjc/+kX+"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229690AbhBAWed (ORCPT + 99 others); Mon, 1 Feb 2021 17:34:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:59826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbhBAWea (ORCPT ); Mon, 1 Feb 2021 17:34:30 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3685164E93; Mon, 1 Feb 2021 22:33:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612218830; bh=6ifs07SoPwNCF09AduweLP8VSa2eET6rB/VZr8wQPrU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hjc/+kX+QPWvs0PD/OViXtjsrmNHauL9Vd0DOYpMijrTS29Wm87KohdYqQqLWuwSm FhbIY4PvPkeCwz7nLF8fb6wbrFsrwuJCZPQ6ysZyFidn/W3lViZJ2Y5UhLHU7v9ag6 TGExqJGtp6hFB4E8lVUp34nS5Z966yrYvM7CEZCVGJ6KLwFLKh17KMj8WpHHKx6LIa e+0HYVsvx05hKmsRIwpTLRyg3HaRo+znAXLOBj0On2a+LgO785NVNP7/jBWfSqVlVc A9HEIwpC2sYWsL3NRKzIT94yaabrSOsNo9IMatWOXf7TQTAG9OVqY7l9jffQIpSs3K s+Kcz1abhVeUw== Date: Mon, 1 Feb 2021 14:33:48 -0800 From: Jaegeuk Kim To: Daeho Jeong Cc: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com, Daeho Jeong Subject: Re: [PATCH] f2fs: prevent setting ioprio of thread not in merge mode Message-ID: References: <20210201005749.2980575-1-daeho43@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210201005749.2980575-1-daeho43@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks. Merged into the original patch. On 02/01, Daeho Jeong wrote: > From: Daeho Jeong > > It causes a crash to change the ioprio of checkpoint thread not in > checkpoint=merge. I fixed that to prevent setting the ioprio of the > thread when checkpoint=merge is not enabled. > > Signed-off-by: Daeho Jeong > --- > fs/f2fs/sysfs.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c > index 100608bcd517..e38a7f6921dd 100644 > --- a/fs/f2fs/sysfs.c > +++ b/fs/f2fs/sysfs.c > @@ -357,8 +357,12 @@ static ssize_t __sbi_store(struct f2fs_attr *a, > return -EINVAL; > > cprc->ckpt_thread_ioprio = IOPRIO_PRIO_VALUE(class, data); > - ret = set_task_ioprio(cprc->f2fs_issue_ckpt, > - cprc->ckpt_thread_ioprio); > + if (test_opt(sbi, MERGE_CHECKPOINT)) { > + ret = set_task_ioprio(cprc->f2fs_issue_ckpt, > + cprc->ckpt_thread_ioprio); > + if (ret) > + return ret; > + } > > return count; > } > -- > 2.30.0.365.g02bc693789-goog