]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/char/synclink_gt.c
tty: release BTM while sleeping in block_til_ready
[net-next-2.6.git] / drivers / char / synclink_gt.c
index 5a602eb7cd2d9c8a5789f5bae59ad147b1dcd873..fef80cfcab5c8caf231b4435d423095dfb90815e 100644 (file)
@@ -3244,7 +3244,9 @@ static int block_til_ready(struct tty_struct *tty, struct file *filp,
                }
 
                DBGINFO(("%s block_til_ready wait\n", tty->driver->name));
+               tty_unlock();
                schedule();
+               tty_lock();
        }
 
        set_current_state(TASK_RUNNING);