buffer locking

From: Nathan C. Burnett (ncb_at_cs.wisc.edu)
Date: 06/30/05

  • Next message: Greg 'groggy' Lehey: "Suurce code navigation tools with call graph?"
    Date: Wed, 29 Jun 2005 22:26:58 -0500 (CDT)
    To: freebsd-hackers@freebsd.org
    
    

    I'm working in FreeBSD 5.3-RELEASE.

    In various places in the buffer management code (e.g. ibwrite()) the
    buffer lock reference count is checked (see below), presumably to make
    sure the buffer is safely locked before working with it. Is there a
    reason that it's not neccesary to ensure that the current thread is the
    lockholder? This seems like it could lead to a race condition where, say
    ibwrite, is content because SOMEONE has the buffer locked, even if it's
    not the current thread.

    Thanks,
    -Nate
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Greg 'groggy' Lehey: "Suurce code navigation tools with call graph?"