linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* md:Add judgement bb->unacked_exist in function
@ 2012-03-08  9:37 kedacomkernel
  2012-03-14  1:53 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: kedacomkernel @ 2012-03-08  9:37 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid

From 7054a9dcd23a721e3c3dd2ceb8f1243187ea5cc4 Mon Sep 17 00:00:00 2001
From: majianpeng <majianpeng@gmail.com>
Date: Thu, 8 Mar 2012 17:31:32 +0800
Subject: [PATCH] md:Add judgement bb->unacked_exist in function
 md_ack_all_badblocks().


Signed-off-by: majianpeng <majianpeng@gmail.com>
---
 drivers/md/md.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index ce88755..7c57d0f 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -8040,7 +8040,7 @@ void md_ack_all_badblocks(struct badblocks *bb)
 		return;
 	write_seqlock_irq(&bb->lock);
 
-	if (bb->changed == 0) {
+	if (bb->changed == 0 && bb->unacked_exist) {
 		u64 *p = bb->page;
 		int i;
 		for (i = 0; i < bb->count ; i++) {
-- 
1.7.5.4

 				
--------------
kedacomkernel
2012-03-08


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-14  1:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08  9:37 md:Add judgement bb->unacked_exist in function kedacomkernel
2012-03-14  1:53 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).