Do not access buffers after dropping reference count
We should not access a buffer after dropping it's reference count otherwise
we could race with another thread that releases the final reference count
and frees the buffer causing us to access potentially unmapped memory.
The bug this change fixes only occured on DEBUG XFS since the offending
code was in an ASSERT.
Date: Tue Jul 22 17:57:07 AEST 2008
Inspected by: david@xxxxxxxxxxxxx
The following file(s) were checked into:
fs/xfs/linux-2.6/xfs_buf.c - 1.258 - changed
- Do not access buffers after dropping reference count