aboutsummaryrefslogtreecommitdiff
path: root/fs/fcntl.c
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2010-10-13 14:06:50 +0000
committerDavid S. Miller <davem@davemloft.net>2010-10-14 10:45:55 -0700
commita3ceeeb8f11d74f26e3dfca40ded911a82402db5 (patch)
treeec30fde13baa7880a48a6353ef5ff0af6bd67185 /fs/fcntl.c
parentcd801536c236e287f1d3eeee428abf9ffd523ede (diff)
cnic: Decouple uio close from cnic shutdown
During cnic shutdown, the original driver code requires userspace to close the uio device within a few seconds. This doesn't always happen as the userapp may be hung or otherwise take a long time to close. The system may crash when this happens. We fix the problem by decoupling the uio structures from the cnic structures during cnic shutdown. We do not unregister the uio device until the cnic driver is unloaded. This eliminates the unreliable wait loop for uio to close. All uio structures are kept in a linked list. If the device is shutdown and later brought back up again, the uio strcture will be found in the linked list and coupled back to the cnic structures. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/fcntl.c')
0 files changed, 0 insertions, 0 deletions