Received: by 10.192.165.156 with SMTP id m28csp2131892imm; Sat, 14 Apr 2018 14:49:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/2Qfzgl3Tb3fLFVDvs3fie8Ll+VtU/OA+2TsSXp6AdRB3F88OaZd0eGyZHiyKxQsWCBOuj X-Received: by 10.101.66.70 with SMTP id d6mr8128900pgq.234.1523742583068; Sat, 14 Apr 2018 14:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523742583; cv=none; d=google.com; s=arc-20160816; b=siZ9AQgeLFuoT0Aviu/QQNaVLPVyUYG+evbST06225uank71PfViRNo1RbeHMHfUeM vtxzo1wQyLBAsiyL/8CXfuHs8YEG57KLOyxrw9ZYeKVknP5iYiJG621VqhkmKVnPeXAX nBabPcjEvim8eWKpfdvNXquQWtP+9VEPbBiNIMatUIq1WnrkP5fWVj6iDoVhuYe0adyn 6emiJSyiOzceSkEboz4fMmrets9cAtHHnnT56dyf0PUDqvdAYGOGvjqqlEtLBNkl2jxb cYnVpzSoInZgQLQK0+mot0t+SAhy4hawSEUeLW+Q0H6yG2c240kL5bsff5y0diPGZLEo t1aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=VJkgFGrY01WEHtnbEGfWUd7nIJE0RBmOnpkn6Yi+Ck8=; b=M9zYNtYUVabN+3ekjJYpQXHbobtFQMWeGqX5aGKp4TAWESQ+G/g/+/Z+tmNtOO0UER ucl3nRwA4ukQ9Fl4O3Yx9jmB/g0gdTMlEt0pGKIIeciAPJeX1S0sTpDK7YB3tmhJLY3e BwIpYIQeI11UV73Yst9IzbONr2kfmxHJiJA8Yhfv4RjCqn3PjuCWULM+yY9KSRVXhrpd 0bTbG/W8DCdMqa1Ew7VyPtoSgvycSja+EuJYE8OstUK/FPdp8WEtemTNieE3T9Bbn3gI uAIqvzFEDT1W4VyKjrOP3OtvMzP5AVT9NwFgMl9Wev8xbjYQkmXztadU5sKPu+d3NKTP zStQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=qKgVd5w2; dkim=fail header.i=@linux-foundation.org header.s=google header.b=V1kGf3rX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si6525095pgq.646.2018.04.14.14.49.15; Sat, 14 Apr 2018 14:49:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=qKgVd5w2; dkim=fail header.i=@linux-foundation.org header.s=google header.b=V1kGf3rX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752137AbeDNVrY (ORCPT + 99 others); Sat, 14 Apr 2018 17:47:24 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:39862 "EHLO mail-it0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752046AbeDNVrW (ORCPT ); Sat, 14 Apr 2018 17:47:22 -0400 Received: by mail-it0-f50.google.com with SMTP id 85-v6so4624126iti.4; Sat, 14 Apr 2018 14:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VJkgFGrY01WEHtnbEGfWUd7nIJE0RBmOnpkn6Yi+Ck8=; b=qKgVd5w2es3io46DbwGKu2PhY/YeVCh0VFMtEV3PvXV+8THov+eeame+R1aUycSeyV yQJB5WACDxTlfc2JCA2zTgME/AzV21tR8jiQJtB8yVHJlje1GV7ujPHye9UwBVbjNirZ mqK4bJleQAIdHuF0qrZOujtKHGYW/vwAB/4J1XsrOv738Kh+nuJfybVCREW49ZwH3zyO wcLT1bgDBxUuA4r+J0TM2XxZPzh3OFFO1yToGMD8hM88gpdRhKdCITKVhVOU4hguWVnm 5i7hznPGzfzkOq6/2G58soD+DHbIW3g1/nEiQnN4nUGVcvFE2NMQThiL+/THdsK43zkl IP1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VJkgFGrY01WEHtnbEGfWUd7nIJE0RBmOnpkn6Yi+Ck8=; b=V1kGf3rX1r+JldKgmeeOC0DA946p6kfiXquLlapXi+TW5resyMWYy5xmjYwFt4yHIp h+0L730T/kCK+c5iHE2ozOtsKyJlyT0EPDr7KYHvP5Rhk63WS6h78g9xhmyUFa7pUGpG IAbakeSPf2tKwDEkKI/LzZ0CHrSr4oTebJLhA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VJkgFGrY01WEHtnbEGfWUd7nIJE0RBmOnpkn6Yi+Ck8=; b=ABgqOa0V0pkckTIxRxV3QS9sjjPtNJnFL9mBc6whIZMKfZgK8cga8EwtA9dpVXji5q kU/nnXhoKgpFYXw4p9tuFX0uleg7cM1xPNW3vKE2qjZY/PG/Sim3AJGDOKuz3QFquUku av4RRfd0gdX+XDWhQQxHmQQBf1CJiSaj3Hxkt9LfHBkgMlXrUlIzteaRNaOJck8bP0dY /vGs6uK5q5TuM/emM5USVedcVgB/gJQ3wUQu6euIqrkN/Cr8jE3yXEUAgXyUNV5y6Ppv d3b9TS8QFuz88NGB/whT/duw8xzxdZobeS0pN2R02ZlF3v6twbnzpMwoqD7N9MSf+YyC 1hhA== X-Gm-Message-State: ALQs6tARGa8jr98vhA5VUqk2Je6tYO2wxUSs0ewPkEjSbLk2h23a+UJS JdKaTLSsWOcoZ85b3cinScQ+0m58kjlxmuqZRvw= X-Received: by 2002:a24:19c9:: with SMTP id b192-v6mr10078638itb.1.1523742441837; Sat, 14 Apr 2018 14:47:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.95.15 with HTTP; Sat, 14 Apr 2018 14:47:21 -0700 (PDT) In-Reply-To: <20180414205846.GW30522@ZenIV.linux.org.uk> References: <20180413181350.88831-1-khazhy@google.com> <20180413202823.204377-1-khazhy@google.com> <20180413141430.2788e2562e3e24bd273fe78b@linux-foundation.org> <3362fb2d-85ff-86af-399f-698c986e46cc@suse.com> <20180414080206.GV30522@ZenIV.linux.org.uk> <20180414205846.GW30522@ZenIV.linux.org.uk> From: Linus Torvalds Date: Sat, 14 Apr 2018 14:47:21 -0700 X-Google-Sender-Auth: KtCA0tWCQ6N52vJSRJ-MljtPo4c Message-ID: Subject: Re: [PATCH] fs/dcache.c: re-add cond_resched() in shrink_dcache_parent() To: Al Viro Cc: Nikolay Borisov , Andrew Morton , Khazhismel Kumykov , linux-fsdevel , Linux Kernel Mailing List , David Rientjes , Goldwyn Rodrigues , Jeff Mahoney , Davidlohr Bueso Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 14, 2018 at 1:58 PM, Al Viro wrote: > > That breaks d_invalidate(), unfortunately. Look at the termination > conditions in the loop there... Ugh. I was going to say "but that doesn't even use select_collect()", but yeah, detach_and_collect() calls it. It would be easy enough to just change the if (!list_empty(&data.select.dispose)) there to if (!list_empty(&data.select.found)) too. In fact, it probably *should* do that, exactly to get the whole "cond_resched()" call in that whole call chain too. Because as-is, it looks like it has the same issue as shrink_dcache_parent() does.. But yeah, the fact that I didn't notice that makes me a bit nervous. But now I triple-checked, there are no other indirect callers. Linus