Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4112025imm; Sat, 21 Jul 2018 10:23:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcA2OtCb+iyhZNbBc29htjFVJ7a0rN9EKrP29R5Jc0vM6bs/zZpveXiBTqDjfjT8rqBbhMg X-Received: by 2002:a62:129a:: with SMTP id 26-v6mr6789173pfs.102.1532193827167; Sat, 21 Jul 2018 10:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532193827; cv=none; d=google.com; s=arc-20160816; b=uc2tr2gMmZTGhJ2QWNqxOuK9YlfiUtq0ujOntdmKz2dkuukA4/xJybn5kv87JKGJz7 PNyCZCT2qIirTg6c2fIefB52Dj8rFlGSxpcSYbDlpptqUzYo3HoI4MQ6Pw21QydiuSmq tvP0oX88giT2x7gXnbD0S6DtY3zsJWv6FgagCrWHbgcQAyT3aI0YeRb+zncn4UYQ4/V/ l5dinT8nEKlWRc9anBYouTWovHqSfGjqjL0gEdTdMPCcSDHCHxo/zJEt5bMpq/MUQh5c tYfXm/ZAgrWkRnRFbJLool4nAXc5z+78imaOiFbCVM+wJvgVnTH+rZPiRcs4LfTr6fNw QTLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=+TV/kFTlniU26TIS8y8yTZ6WXxEWNLGuG4Yrzck0iGs=; b=aoWB0S7NGbPN0v8M6lqqr9pmhPglDY0BwJdDRoDv07tJMDo0naHeNnbMG57PlJDA3J ix8vOUpIDMAkaeO4NGuc0yQAAtZOjNUdfYDP1YOg6r2DrIBKYpNzRl2Oc0BjYNVmA9Sc veVJkSZr/OAIoXz0S29qy+jSL6QsPFWcEKKSIBhnxtM88w4rHoruGpHuuQvgnb+3brqc SgHHmqsXGc6r57868d5D+ZQFJzcQFxX8WmWtRPBjyXCcxCoTYqXIdhnYkRxniPLm8zam VXQtc99jljSwT6KMDhUISrj4mjkNG6Z/xnANptJ1uhSS9M0x4pFL/MWFTThuvhYC+KWx 3maQ== ARC-Authentication-Results: i=1; mx.google.com; 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 z13-v6si4542680pgk.127.2018.07.21.10.23.32; Sat, 21 Jul 2018 10:23:47 -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; 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 S1727838AbeGUSOx (ORCPT + 99 others); Sat, 21 Jul 2018 14:14:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:56626 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727483AbeGUSOx (ORCPT ); Sat, 21 Jul 2018 14:14:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C32E6AE5B; Sat, 21 Jul 2018 17:21:26 +0000 (UTC) Date: Sat, 21 Jul 2018 10:21:20 -0700 From: Davidlohr Bueso To: Andrew Morton Cc: jbaron@akamai.com, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, Peter Zijlstra Subject: Re: [PATCH -next 0/2] fs/epoll: loosen irq safety when possible Message-ID: <20180721172120.kbdu4euc2wn4xzgf@linux-r8p5> References: <20180720172956.2883-1-dave@stgolabs.net> <20180720124212.7260d76d83e2b8e5e3349ea5@linux-foundation.org> <20180720200559.27nc7j2rrxpy5p3n@linux-r8p5> <20180720134429.1ba61018934b084bb2e17bdb@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180720134429.1ba61018934b084bb2e17bdb@linux-foundation.org> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Jul 2018, Andrew Morton wrote: >We could open-code it locally. Add a couple of >WARN_ON_ONCE(irqs_disabled())? That might need re-benchmarking with >Xen but surely just reading the thing isn't too expensive? We could also pass on the responsibility to lockdep and just use lockdep_assert_irqs_disabled(). But I guess that would be less effective than to just open code it in epoll without lockdep -- note that over 80 places in the kernel do this. Thanks, Davidlohr