Re: tty sources

From: Theodore Y. Ts'o (tytso@MIT.EDU)
Date: Wed May 17 2000 - 13:55:19 EST


   Date: Wed, 17 May 2000 18:06:17 +0530
   From: Sameer <sameer@multitech.co.in>

   I am currently looking at the 2.2.15 kernel tty code and saw that
   "save_flags cli - restore_flags" pair are used instead of spinlocks to
   enforce critical sections. Would'nt this break on SMP systems? I hope I
   am not overlooking something here.

The tty code is still under the "big lock". (i.e., the global kernel
lock). Quite a bit of work will be necessary before it can be
fine-grained locked, and quite frankly, it's not clear to me how high
priority this is. If you're doing tty activity, almost by definition
what you're doing is going to be slow, and spinning on the big lock is
probably not the highest in the list of things to worry about. So it
almost certainly won't get fixed until sometime post 2.4, I would guess.

                                                - Ted

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:13 EST