Re: [PATCH] ircomm: release tty before sleeping potentiallyindefintely

From: David Miller
Date: Sun Mar 03 2013 - 21:36:12 EST


From: Peter Hurley <peter@xxxxxxxxxxxxxxxxxx>
Date: Sun, 03 Mar 2013 20:06:18 -0500

> But regardless, this function __cannot__ sleep holding the tty_lock().

So drop it across the schedule(), but recheck the termios after
regrabbing it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/