Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 29 Jan 2002 23:54:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 29 Jan 2002 23:54:28 -0500 Received: from leibniz.math.psu.edu ([146.186.130.2]:46047 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Tue, 29 Jan 2002 23:54:19 -0500 Date: Tue, 29 Jan 2002 23:54:14 -0500 (EST) From: Alexander Viro To: Linus Torvalds cc: Robert Love , linux-kernel@vger.kernel.org Subject: Re: [PATCH] 2.5: push BKL out of llseek In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Jan 2002, Linus Torvalds wrote: > > On 29 Jan 2002, Robert Love wrote: > > > > This patch pushes the BKL out of llseek() and into the individual llseek > > methods. For generic_file_llseek, I replaced it with the inode > > semaphore. > > Thinking about that, that actally sounds like the _right_ thing to do even > from a correctness standpoint - as llseek() looks at the inode size, so we > should have that lock anyway. > > So I'd suggest doing the inode semaphore globally, instead of using > kernel_lock at all. > > Al? It's OK for regular files and directories, but I'm not sure about devices. So I'd prefer to do it in two stages - shift BKL into ->llseek() and then see where it can be dropped/replaced with ->i_sem. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/