[PATCH] xfs: fix race while discarding buffers

Carlos Maiolino cmaiolino at redhat.com
Mon Aug 6 10:48:04 CDT 2012


Please, ignore this patch. 

I've made a mistake on this patch, and I'm sending a V2 patch to fix the
error signed below:

>  fs/xfs/xfs_buf.c | 7 ++++++-
>  fs/xfs/xfs_buf.h | 7 ++++++-
>  2 files changed, 12 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
> index d7a9dd7..52b27c4 100644
> --- a/fs/xfs/xfs_buf.c
> +++ b/fs/xfs/xfs_buf.c
> @@ -96,6 +96,8 @@ xfs_buf_lru_add(
>  		atomic_inc(&bp->b_hold);
>  		list_add_tail(&bp->b_lru, &btp->bt_lru);
>  		btp->bt_lru_nr++;
> +		if (bp->b_lru_flags & XBF_LRU_DISPOSE)
		^^^^^^

		This should be if (!(b_lru_flags & XBF_LRU_DISPOSE))


I'm sending the V2 patch. Sorry about that.

-- 
--Carlos



More information about the xfs mailing list