[PATCH] drivers/char/serial167.c: replace interruptible_sleep_on() From: irwan.djajadi@iname.com Replace interruptible_sleep_on() with wait_event_interruptible(). Signed-off-by: Irwan Djajadi Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/char/serial167.c =================================================================== --- linux-kj.orig/drivers/char/serial167.c 2005-12-05 13:17:57.000000000 +0300 +++ linux-kj/drivers/char/serial167.c 2005-12-05 13:20:17.000000000 +0300 @@ -1867,7 +1867,8 @@ block_til_ready(struct tty_struct *tty, * until it's done, and then try again. */ if (info->flags & ASYNC_CLOSING) { - interruptible_sleep_on(&info->close_wait); + wait_event_interruptible(info->close_wait, + (info->flags & ASYNC_CLOSING) == 0); if (info->flags & ASYNC_HUP_NOTIFY){ return -EAGAIN; }else{