]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/char/synclinkmp.c
tty: release BTM while sleeping in block_til_ready
[net-next-2.6.git] / drivers / char / synclinkmp.c
index ac447c7eb572a4f20bbdf51d82f27377fa3cb1e4..e56caf7d82aaaa5e679e6835784ac7714f1cf864 100644 (file)
@@ -3365,7 +3365,9 @@ static int block_til_ready(struct tty_struct *tty, struct file *filp,
                        printk("%s(%d):%s block_til_ready() count=%d\n",
                                 __FILE__,__LINE__, tty->driver->name, port->count );
 
+               tty_unlock();
                schedule();
+               tty_lock();
        }
 
        set_current_state(TASK_RUNNING);