Re: [PATCH 10/10] btrfs: rework end io for extent buffer reads

2017-11-16 Thread Liu Bo
On Tue, Nov 14, 2017 at 04:56:56PM -0500, Josef Bacik wrote: > From: Josef Bacik > > Now that the only thing that keeps eb's alive is io_pages and it's > refcount we need to hold the eb ref for the entire end io call so we > don't get it removed out from underneath us. Also the

[PATCH 10/10] btrfs: rework end io for extent buffer reads

2017-11-14 Thread Josef Bacik
From: Josef Bacik Now that the only thing that keeps eb's alive is io_pages and it's refcount we need to hold the eb ref for the entire end io call so we don't get it removed out from underneath us. Also the hooks make no sense for us now, so rework this to be cleaner.