Re: [PATCH 31/37] db: Unwind the IO stack on exit

Christoph Hellwig
2013-11-07T20:55:59Z

On Wed, Nov 06, 2013 at 12:07:17PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> xfs_db can build up a large IO stack by the time it has run to
> completion. If we don't unwind this IO stack before we shut down the
> libxfs caches, metadump and other db programs will exit with
> unreleased buffers and emit warnings like:
>
> cache_purge: shake on cache 0x69e4f0 left 7 nodes!?
>
> Hence we need to unwind the iostack as we shut down.

Seems like this should be folded into patch 20, as that adds the
first pop, but it seems to fail goind all the way.

Otherwise looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>