Re: [PATCH] xfs: fix race while discarding buffers
From: Carlos Maiolino <hidden>
Date: 2012-08-06 15:48:11
From: Carlos Maiolino <hidden>
Date: 2012-08-06 15:48:11
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 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs