Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2005 03:48:08 +0000 (UTC)
From:      Doug White <dwhite@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern tty.c
Message-ID:  <200505050348.j453m8aC010285@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
dwhite      2005-05-05 03:48:08 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    sys/kern             tty.c 
  Log:
  Commit a workaround to panics in ttwwakeup() during open and closes of the
  terminal sharing /dev/console. Peek at tty structs passing through ttymalloc()
  and pass them to ttyrel() if they'd get reaped due to the refcount dropping
  to 0. Also loosen up the refcount check in ttyrel() to account for
  refcounting problems caused by the incestuous relationship. I left the
  KASSERT alone in case people want to look into the underlying issue.
  
  Reaping dying tty structs helps keep stale data from growing in the knote
  lists, which eventually get tripped over, causing the panic.
  
  This change does not apply to -CURRENT due to differences in tty handling.
  
  MFC after:      3 days
  
  Revision   Changes    Path
  1.228.2.4  +12 -2     src/sys/kern/tty.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505050348.j453m8aC010285>