Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 29 Jan 2002 19:54:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 29 Jan 2002 19:54:04 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:47624 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Tue, 29 Jan 2002 19:53:47 -0500 Date: Tue, 29 Jan 2002 16:52:47 -0800 (PST) From: Linus Torvalds To: Robert Love cc: , Subject: Re: [PATCH] 2.5: push BKL out of llseek In-Reply-To: <1012351309.813.56.camel@phantasy> 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 29 Jan 2002, Robert Love wrote: > > Another gain from pushing the locks into each method is that we can pick > and choose as-needed. If it turns out inode semaphore is a global > solution, the following patch is sufficient. Otherwise, we could > replace the lock_kernel in each caller with the inode semaphore, as > appropriate. Oh Al ?? Doing it in the low-level filesystem would match how we now do it inside generic_file_write() - ie the locking is done by the low-level filesystem, but most low-level filesystems choose to use a generic helper function. And I think your patch is slightly wrong: > + down(&file->f_dentry->d_inode->i_sem); That should really be: file->f_dentry->d_inode->i_mapping->host->i_sem to get the hosted filesystem case right (ie coda). Linus - 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/