Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1086971pxb; Fri, 28 Jan 2022 18:09:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMiUtQbnT9GZHQ6DOSlNfSRrgD4F6grxDSytQ3Vb/G0Wvc3xtRj2zNWbu03tC/YmRbHHqg X-Received: by 2002:a17:902:ed85:: with SMTP id e5mr10890919plj.46.1643422155368; Fri, 28 Jan 2022 18:09:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643422155; cv=none; d=google.com; s=arc-20160816; b=HUgOTWtnNdCazVboRDy8kWzCaW5EftRwObhRIwAR3wMN95h3VSogqIQIrtsCp4+U6i NpJl3LB0RgvK/jGzhmKBjO02QDq+79OSWoPq4qO+cGcJZqLEGDyWMrpJFN52+MbI9+sr 51zGQR/LpZZvuv5OAIy6vxaLqNJDg9aU6om7phe3FlOlmcVb1OmAzq2fiy+6lyaSbSqx qLEMmQ7PxYOkWdrhlYDC3EyXL00OAdq4pKTHFUkG/FaD6na2yqLv7OdpTdPr0FhwLAyD T3YOuh7DsjlxuVRrpDGRkQ2TfiFxJnpnRbhAsKXv0j57X+eeN6Hg51dpp+M/gPyGqHEC 7nIg== 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=u9jRVqA2Bs0NAfgFYlA/hW35TDeyw2nDJVEFZxEAkdA=; b=HAoKT8JrhV7OGEpaxbKUx68B1reGXOeIP62jiICAuiQ3F52yawgSyRf1HfL/FSAfuL NwZF1/wDMOg5W9sBp7vilKElnT2mFFWjPoWNBclY3w9mC9U0j5uGqy59fRxuA5Oe0pyy /2bz6dmVHlUyUxnwTdxYrLUO2yEILriVuT2q1Y/07Y9f5CgJr2vW+igbKjIjVqlW3if5 IvBRXVJ7o5fQCRS4lZh+Y7dSH9rb9rUu8pB/ro+SAOU8wIoSd1JaBHBC1ep2HHnszu06 hzl4bhNKrXWgjL601vmr4BTQmhSXP2JiwRhcDuLbca1uKgULbxqugoVhHrQECUHGUONm BHqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="WU6/JKhy"; 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 q4si7081922pgq.613.2022.01.28.18.09.03; Fri, 28 Jan 2022 18:09:15 -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=@infradead.org header.s=casper.20170209 header.b="WU6/JKhy"; 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 S236927AbiA1A6K (ORCPT + 99 others); Thu, 27 Jan 2022 19:58:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbiA1A6J (ORCPT ); Thu, 27 Jan 2022 19:58:09 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73E26C061714; Thu, 27 Jan 2022 16:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=u9jRVqA2Bs0NAfgFYlA/hW35TDeyw2nDJVEFZxEAkdA=; b=WU6/JKhymEPIif84GWAnNrY3V1 kcr8jGkUmFjPdkh3hx/9NozOuav9GoeLWTa4qJOtsTRajITpY3qrDBwRMvnyPX4x6XpVDqKPleXfR Vn3tuzR7hQkcfBTTh6lzTMjna8TWOTTpJ3OEUUUxDX+E87JwZRCusukTvkXd+FY1J4f8A3ue4vApm 33raRVtD8HNvg6L9aoUE2FYVwLg2sbvJAyx6eF02G0ud0ocOEeYmDPM/9R8PS7sQ5tcqFjrQmAduQ ncN4jyXWPSbNzt9jpvzHtesTzhLze4i2uipyUk4D33XzFoGLNSin9xYf/7Dq6jA9nmC0rLIufzwss 3dwi4KgQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDFaY-005q2k-AJ; Fri, 28 Jan 2022 00:58:06 +0000 Date: Fri, 28 Jan 2022 00:58:06 +0000 From: Matthew Wilcox To: Steve French Cc: David Howells , Shyam Prasad N , CIFS , linux-cachefs@redhat.com, Jeff Layton , Linus Torvalds , linux-fsdevel , LKML Subject: Re: [PATCH 4/4] cifs: Implement cache I/O by accessing the cache directly Message-ID: References: <164329930161.843658.7387773437540491743.stgit@warthog.procyon.org.uk> <164329937835.843658.13129382687019174242.stgit@warthog.procyon.org.uk> 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 Thu, Jan 27, 2022 at 06:55:23PM -0600, Steve French wrote: > Regression tests so far on Dave's cifs fscache patch series are going > fine. First series of tests I ran were this: > http://smb3-test-rhel-75.southcentralus.cloudapp.azure.com/#/builders/11/builds/160 > but I have to run additional tests with fscache enabled etc. > > I saw that checkpatch had some minor complaints on this patch (patch > 4) which I cleaned up, but was wondering other's thoughts on this > checkpatch warning: > > WARNING: Avoid crashing the kernel - try using WARN_ON & recovery code > rather than BUG() or BUG_ON() > #101: FILE: fs/cifs/file.c:4449: > > ie > > + page = readahead_page(ractl); > + BUG_ON(!page); Just remove it. The kernel will crash just fine without putting in an explicit BUG_ON, and it'll be obvious what the problem is.