]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/serial/crisv10.c
tty: release BTM while sleeping in block_til_ready
[net-next-2.6.git] / drivers / serial / crisv10.c
index 8e356c5eeae0e826b569e188ab1fa0f50b2efeb4..5696710b6f2dd133e69fc42f1ad0e117d48a9af5 100644 (file)
@@ -4066,7 +4066,9 @@ block_til_ready(struct tty_struct *tty, struct file * filp,
                printk("block_til_ready blocking: ttyS%d, count = %d\n",
                       info->line, info->count);
 #endif
+               tty_unlock();
                schedule();
+               tty_lock();
        }
        set_current_state(TASK_RUNNING);
        remove_wait_queue(&info->open_wait, &wait);