lkml.org 
[lkml]   [2008]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] firewire: fail open() quickly if the node doesn't exist anymore
Date
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 <stefanr@s5r6.in-berlin.de>

Makes perfect sense to me, no problems with it in cursory testing.

Signed-off-by: Jarod Wilson <jwilson@redhat.com>

--
Jarod Wilson
jwilson@redhat.com


\
 
 \ /
  Last update: 2008-01-28 23:35    [W:0.065 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site