[PATCH] drivers/char/istallion.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/istallion.c =================================================================== --- linux-kj.orig/drivers/char/istallion.c 2005-10-28 16:39:02.000000000 +0400 +++ linux-kj/drivers/char/istallion.c 2005-10-28 16:42:57.000000000 +0400 @@ -1052,7 +1052,8 @@ static int stli_open(struct tty_struct * * for it is done with the same context. */ if (portp->flags & ASYNC_CLOSING) { - interruptible_sleep_on(&portp->close_wait); + wait_event_interruptible(portp->close_wait, + (portp->flags & ASYNC_CLOSING) == 0); if (portp->flags & ASYNC_HUP_NOTIFY) return(-EAGAIN); return(-ERESTARTSYS); @@ -1092,7 +1093,8 @@ static int stli_open(struct tty_struct * * for it is done with the same context. */ if (portp->flags & ASYNC_CLOSING) { - interruptible_sleep_on(&portp->close_wait); + wait_event_interruptible(portp->close_wait, + (portp->flags & ASYNC_CLOSING) == 0); if (portp->flags & ASYNC_HUP_NOTIFY) return(-EAGAIN); return(-ERESTARTSYS);