Re: [PATCH] Do not access buffers after dropping reference count

Lachlan McIlroy
2008-07-22T02:49:29Z

Dave Chinner wrote:
> On Tue, Jul 22, 2008 at 12:16:45PM +1000, Lachlan McIlroy wrote:
>> 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.
>
> Looks OK. The commit message should point out this is a problem
> only for DEBUG kernels, though.

Okay, will do.