Re: [PATCH] firewire: fail open() quickly if the node doesn't exist anymore

2008-01-28 Thread Stefan Richter
Jarod Wilson wrote: > 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

Re: [PATCH] firewire: fail open() quickly if the node doesn't exist anymore

2008-01-28 Thread Jarod Wilson
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

Re: [PATCH] firewire: fail open() quickly if the node doesn't exist anymore

2008-01-28 Thread Jarod Wilson
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

Re: [PATCH] firewire: fail open() quickly if the node doesn't exist anymore

2008-01-28 Thread Stefan Richter
Jarod Wilson wrote: 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

[PATCH] firewire: fail open() quickly if the node doesn't exist anymore

2008-01-27 Thread Stefan Richter
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

[PATCH] firewire: fail open() quickly if the node doesn't exist anymore

2008-01-27 Thread Stefan Richter
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