From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752706AbYA1Wcg (ORCPT ); Mon, 28 Jan 2008 17:32:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752986AbYA1Wc0 (ORCPT ); Mon, 28 Jan 2008 17:32:26 -0500 Received: from mx1.redhat.com ([66.187.233.31]:59487 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752534AbYA1WcZ (ORCPT ); Mon, 28 Jan 2008 17:32:25 -0500 From: Jarod Wilson Organization: Red Hat, Inc. To: Stefan Richter Subject: Re: [PATCH] firewire: fail open() quickly if the node doesn't exist anymore Date: Mon, 28 Jan 2008 17:32:03 -0500 User-Agent: KMail/1.9.6 (enterprise 0.20071204.744707) Cc: linux1394-devel@lists.sourceforge.net, Kristian =?iso-8859-1?q?H=F8gsberg?= , linux-kernel@vger.kernel.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801281732.03912.jwilson@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 27 January 2008 12:21:56 pm Stefan Richter wrote: > Scenario: Process A keeps the character device file of node N open. > N is being unplugged. File /dev/fwN won't be destroyed as long as A > doesn't close it. Now, process B opens /dev/fwN as well. Previously > it would succeed but be unable to do any IO on it of course. With this > patch, process B's open() will fail immediately with -ENODEV. > > Signed-off-by: Stefan Richter Makes perfect sense to me, no problems with it in cursory testing. Signed-off-by: Jarod Wilson -- Jarod Wilson jwilson@redhat.com