md: Add judgement bb->unacked_exist in function md_ack_all_badblocks().
authormajianpeng <majianpeng@gmail.com>
Mon, 19 Mar 2012 01:46:42 +0000 (12:46 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 19 Mar 2012 01:46:42 +0000 (12:46 +1100)
commitecb178bb2b154a40cfae9fa4c42e62ccfa81ac6b
treea3a6ff71d28069f6eef78a4f24f7f9c385a086a7
parentd0962936bff659d20522555b517582a2715fd23f
md: Add judgement bb->unacked_exist in function md_ack_all_badblocks().

If there are no unacked bad blocks, then there is no point searching
for them to acknowledge them.

Signed-off-by: majianpeng <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c