tty: make the kref destructor occur asynchronously
authorAlan Cox <alan@linux.intel.com>
Sat, 19 Sep 2009 20:13:22 +0000 (13:13 -0700)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:22 +0000 (13:13 -0700)
commitb50989dc444599c8b21edc23536fc305f4e9b7d5
tree9a340199b17a680ea41ac65bf5b8ff0c5d84cb14
parente936ffd5cb2b4c7ee04925c9b92b616c01f1e022
tty: make the kref destructor occur asynchronously

We want to be able to sleep in the destructor for USB at least. It isn't a
hot path so just pushing it to a work queue doesn't really cause any
difficulty.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_io.c