Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964889AbWHQNte (ORCPT ); Thu, 17 Aug 2006 09:49:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964886AbWHQN2K (ORCPT ); Thu, 17 Aug 2006 09:28:10 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:55951 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S964885AbWHQN2G (ORCPT ); Thu, 17 Aug 2006 09:28:06 -0400 Subject: Re: PATCH/FIX for drivers/cdrom/cdrom.c From: Alan Cox To: Lennart Sorensen Cc: 7eggert@gmx.de, Arjan van de Ven , Dirk , linux-kernel@vger.kernel.org In-Reply-To: <20060817132309.GX13639@csclub.uwaterloo.ca> References: <6Kxns-7AV-13@gated-at.bofh.it> <6Kytd-1g2-31@gated-at.bofh.it> <6KyCQ-1w7-25@gated-at.bofh.it> <1155821951.15195.85.camel@localhost.localdomain> <20060817132309.GX13639@csclub.uwaterloo.ca> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 17 Aug 2006 14:48:50 +0100 Message-Id: <1155822530.15195.95.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 866 Lines: 20 Ar Iau, 2006-08-17 am 09:23 -0400, ysgrifennodd Lennart Sorensen: > Why can't O_EXCL mean that the kernel prevents anyone else from issuing > ioctl's to the device? One would think that is the meaning of exlusive. If you were designing a new OS from scratch you might want to explore that semantic as a design idea. I wouldn't recommend it because a lot of apps will be upset if they issue an ioctl and it mysteriously fails or hangs. Issues of this nature require high level synchronization and that (witness email) is generally done in user space which is the only place that has transaction level visibility. Alan - 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/