linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* change in disk failure policy for non-BBL arrays?
@ 2017-10-23 21:23 Chris Walker
  2017-11-03 19:58 ` FW: " Chris Walker
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Walker @ 2017-10-23 21:23 UTC (permalink / raw)
  To: linux-raid

Hello,

We've noticed that for an array on which the bad block list has been 
disabled, a failed write from a 'check' operation no longer causes the 
offending disk to be failed out of the array.  As far as I can tell, 
this behavior changed with commit
https://github.com/torvalds/linux/commit/fc974ee2bffdde47d1e4b220cf326952cc2c4794, 
which adopted the block layer badblocks code and deprecated the 
MD-specific code.

It looks like this commit changed underlying code that adds a range of 
bad blocks to the BB table (md_set_badblocks --> badblocks_set) such 
that the sense of the return code reversed, from 0 meaning an error 
occurred to 0 meaning success, but the return code due to a disabled BB 
was left at 0.  With this change, therefore, for arrays without a BBL, 
calls to 'rdev_set_badblocks' changed from always a failure to always a 
success, and code such as

                                 if (rdev_set_badblocks(
                                             rdev,
r10_bio->devs[m].addr,
                                             r10_bio->sectors, 0))
                                         md_error(conf->mddev, rdev);

that previously would have failed the disk no longer do.  Was this 
change in policy deliberate?

Thanks,
Chris

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

end of thread, other threads:[~2017-11-06 13:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-23 21:23 change in disk failure policy for non-BBL arrays? Chris Walker
2017-11-03 19:58 ` FW: " Chris Walker
2017-11-03 20:19   ` Sarah Newman
2017-11-03 21:59     ` Chris Walker
2017-11-06  8:14   ` Artur Paszkiewicz
2017-11-06  8:26     ` Artur Paszkiewicz
2017-11-06 13:42     ` Chris Walker

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).