From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030819AbXCTBDl (ORCPT ); Mon, 19 Mar 2007 21:03:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S966059AbXCTBDl (ORCPT ); Mon, 19 Mar 2007 21:03:41 -0400 Received: from mx1.redhat.com ([66.187.233.31]:50423 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964834AbXCTBDk (ORCPT ); Mon, 19 Mar 2007 21:03:40 -0400 Date: Mon, 19 Mar 2007 18:02:25 -0700 From: Pete Zaitcev To: "Dmitry Torokhov" Cc: linux-kernel@vger.kernel.org Subject: Re: chrdev_open lifetime question Message-Id: <20070319180225.4638bc80.zaitcev@redhat.com> In-Reply-To: References: Organization: Red Hat, Inc. X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.11; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Mar 2007 17:23:05 -0500, "Dmitry Torokhov" wrote: > It seems that if a process keeps a character device open then other > processes will also be able to get into filp->f_op->open(inode,filp) > in chrdev_open() even after a driver called cdev_del() as part of its > unwind procedure. Is this correct or am I missing something? I see no replies in the archives. Have you got any private ones? Also, what's the context? -- Pete