DragonFly- master sys/vfs/hammer hammer_cursor.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jan 25 23:31:36 PST 2009

commit 19168d41f0ee9eace4a412c47e3e9b412746c064
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Jan 25 13:11:14 2009 -0800

    HAMMER VFS - clean out cached data_buffer on unlock cursor to avoid deadlock
    Clean out any cached cursor->data_buffer when unlocking a cursor.  The
    underlying buffer cache buffer could become stale and if we do not release
    our hammer_buffer reference on it other threads may deadlock trying to
    getblk() the buffer cache buffer in order to invalidate it.

Summary of changes:
 sys/vfs/hammer/hammer_cursor.c |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)


DragonFly BSD source repository

More information about the Commits mailing list