]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/dquot.c
tty: Redo current tty locking
[linux-2.6-omap-h63xx.git] / fs / dquot.c
index 7417a6ca3129993b316456acd364e17a1102ee02..ad7e59003e0445943d21f8b9f78090f7b9e19b53 100644 (file)
@@ -895,9 +895,7 @@ static void print_warning(struct dquot *dquot, const int warntype)
            warntype == QUOTA_NL_BSOFTBELOW || !need_print_warning(dquot))
                return;
 
-       mutex_lock(&tty_mutex);
        tty = get_current_tty();
-       mutex_unlock(&tty_mutex);
        if (!tty)
                return;
        tty_write_message(tty, dquot->dq_sb->s_id);