Re: tty's use of file_list_lock and file_move

From: Jon Smirl
Date: Mon Jul 10 2006 - 19:48:54 EST


How about the use of lock/unlock_kernel(). Is there some hidden global
synchronization going on? Every time lock/unlock_kernel() is used
there is a tty_struct available. My first thought would be to turn
this into a per tty spinlock. Looking at where it is used it looks
like it was added to protect all of the VFS calls. I see no obvious
coordination with other ttys that isn't handled by other locks.

--
Jon Smirl
jonsmirl@xxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/