HAMMER VFS - clean out cached data_buffer on unlock cursor to avoid deadlock
commit19168d41f0ee9eace4a412c47e3e9b412746c064
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 25 Jan 2009 21:11:14 +0000 (25 13:11 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 25 Jan 2009 21:11:14 +0000 (25 13:11 -0800)
tree951dd9bf64a4e0e94656aa9ac839561ddc3addac
parent55a9cd0fa2b75e61230e2802b78eaec8937a1e42
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.
sys/vfs/hammer/hammer_cursor.c