On Thu, 10 May 2001 09:06:15 +0900,
  Seigo Tanimura <[EMAIL PROTECTED]> said:

Seigo> A quick and hopefully efficient solution to those problems is to
Seigo> fhold() struct file's first, then enter polling loop. That seems much
Seigo> cheaper than to work on free()ing a vnode or a socket with holding a
Seigo> process lock, provided that struct filedesc and file are protected
Seigo> properly (and we have to do it anyway).

That work is now in the patch at:


Another work in that patch is elimination of P_SELECT and nselcoll
check just prior to waiting for selwait. As we now scan file
descriptors with holding a process lock, race with selwakeup() should
never occur during polling.

Please note that netncp and netsmb are not in the scope the solution
discussed above because we can neither lock nor hold a reference to a
socket for now.

Since several issues regarding to the file descriptor layer have risen
up, I am planning to commit the patch soon and work on locking file


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to