From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755363Ab0C1XSs (ORCPT ); Sun, 28 Mar 2010 19:18:48 -0400 Received: from mail-bw0-f209.google.com ([209.85.218.209]:62129 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755349Ab0C1XSr (ORCPT ); Sun, 28 Mar 2010 19:18:47 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=gh3VJytm/9lvNI7uwf50+Fuszb8PjGXpWzVHt1c7PGXPLuA8qme4E/OaKdN/YmyWa+ Bgoo31lX5HGjXgBR+llYce58lbTf0kkV+saH70KCZzP3fGdx5cP0T9/2Rd4eRcI3IzoQ eBnBl/eL1Zjr31Lka1Q8xTLv//DXNfVGgzjDc= Date: Mon, 29 Mar 2010 01:18:48 +0200 From: Frederic Weisbecker To: Arnd Bergmann Cc: linux-kernel@vger.kernel.org, Matthew Wilcox , Thomas Gleixner , jblunck@suse.de, Alan Cox , Ingo Molnar Subject: Re: [GIT, RFC] Killing the Big Kernel Lock Message-ID: <20100328231847.GH5116@nowhere> References: <201003242240.54907.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201003242240.54907.arnd@arndb.de> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 24, 2010 at 10:40:54PM +0100, Arnd Bergmann wrote: > Arnd Bergmann (44): > [...] > procfs: kill BKL in llseek About this one, there is a "sensible" part: @@ -1943,7 +1949,7 @@ static ssize_t proc_fdinfo_read(struct file *file, char __user *buf, } static const struct file_operations proc_fdinfo_file_operations = { - .open = nonseekable_open, + .llseek = generic_file_llseek, .read = proc_fdinfo_read, }; Replacing default_llseek() by generic_file_llseek() as you did for most of the other parts is fine. But the above changes the semantics as it makes it seekable. Why not just keeping it as is? It just ends up in no_llseek().