Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 12 Aug 2002 17:16:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 12 Aug 2002 17:16:43 -0400 Received: from dsl-213-023-022-055.arcor-ip.net ([213.23.22.55]:23982 "EHLO starship") by vger.kernel.org with ESMTP id ; Mon, 12 Aug 2002 17:16:43 -0400 Content-Type: text/plain; charset=US-ASCII From: Daniel Phillips To: Linus Torvalds Subject: Re: [patch 6/12] hold atomic kmaps across generic_file_read Date: Mon, 12 Aug 2002 23:21:53 +0200 X-Mailer: KMail [version 1.3.2] Cc: Rusty Russell , , References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1032 Lines: 25 On Monday 12 August 2002 22:29, Linus Torvalds wrote: > On Mon, 12 Aug 2002, Daniel Phillips wrote: > > > > That's the whole point of this: it's not a bug anymore. (It's a feature.) > > Well, it's a feature only if _intentional_, so I think Rusty's argument > was that we should call it something else than "copy_to/from_user()" if > we're ready to accept the fact that it fails for random reasons.. Right, I meant to follow up and correct that - the caller has the responsibility of detecting the short transfer and taking corrective action, but on the other hand, maybe the caller always had that responsibility. But for the cases where the caller 'knows' it holds no locks, it's better to oops if that's untrue as Rusty said, plus the inc/dec is saved in that case. -- Daniel - 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/