From patchwork Wed Jan 3 15:58:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot for Kobe Wu X-Patchwork-Id: 10142545 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D0AF460594 for ; Wed, 3 Jan 2018 15:59:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2CE5292D4 for ; Wed, 3 Jan 2018 15:59:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6EBC292D6; Wed, 3 Jan 2018 15:59:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B15B292D4 for ; Wed, 3 Jan 2018 15:59:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751700AbeACP7U (ORCPT ); Wed, 3 Jan 2018 10:59:20 -0500 Received: from terminus.zytor.com ([65.50.211.136]:54775 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750857AbeACP7T (ORCPT ); Wed, 3 Jan 2018 10:59:19 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w03FwCwc018136; Wed, 3 Jan 2018 07:58:12 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w03FwB8Z018132; Wed, 3 Jan 2018 07:58:11 -0800 Date: Wed, 3 Jan 2018 07:58:11 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: "tip-bot for Paul E. McKenney" Message-ID: Cc: tglx@linutronix.de, mingo@kernel.org, linux-fsdevel@vger.kernel.org, paulmck@linux.vnet.ibm.com, hpa@zytor.com, viro@zeniv.linux.org.uk Reply-To: tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com, paulmck@linux.vnet.ibm.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk To: linux-tip-commits@vger.kernel.org Subject: [tip:core/rcu] fs: Eliminate cond_resched_rcu_qs() in favor of cond_resched() Git-Commit-ID: 388a4c88064e7e62602b4d92ca127f0b0c9b305a X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit-ID: 388a4c88064e7e62602b4d92ca127f0b0c9b305a Gitweb: https://git.kernel.org/tip/388a4c88064e7e62602b4d92ca127f0b0c9b305a Author: Paul E. McKenney AuthorDate: Tue, 24 Oct 2017 08:39:34 -0700 Committer: Paul E. McKenney CommitDate: Mon, 4 Dec 2017 10:28:59 -0800 fs: Eliminate cond_resched_rcu_qs() in favor of cond_resched() Now that cond_resched() also provides RCU quiescent states when needed, it can be used in place of cond_resched_rcu_qs(). This commit therefore makes this change. Signed-off-by: Paul E. McKenney Cc: Alexander Viro Cc: --- fs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/file.c b/fs/file.c index 3b08083..fc0eeb8 100644 --- a/fs/file.c +++ b/fs/file.c @@ -391,7 +391,7 @@ static struct fdtable *close_files(struct files_struct * files) struct file * file = xchg(&fdt->fd[i], NULL); if (file) { filp_close(file, files); - cond_resched_rcu_qs(); + cond_resched(); } } i++;