Page MenuHomeFreeBSD

mrsas: don't issue IO to hot-removed physical disk of RAID1 volume.
ClosedPublic

Authored by sumit.saxena_broadcom.com on Mar 8 2024, 6:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 29, 2:06 PM
Unknown Object (File)
Sat, May 18, 12:38 PM
Unknown Object (File)
Fri, May 10, 1:04 AM
Unknown Object (File)
Mon, May 6, 9:58 PM
Unknown Object (File)
Apr 26 2024, 8:33 PM
Unknown Object (File)
Apr 8 2024, 8:39 AM
Unknown Object (File)
Mar 14 2024, 5:40 PM
Unknown Object (File)
Mar 12 2024, 10:11 AM
Subscribers
None

Details

Summary

When one of the physical disk that is part of RAID1 volume is removed, driver may still use the reference the physical disk that is removed while building IO. IO built with a reference to removed physical disk may result into firmware FAULT. This patch fixes this issue by not using any reference to the removed physical disk of RAID1 volume.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Looks good, feel free to take up or not my suggestion.

Next time, please generate diffs with -U99999 so that we get the full context. It's a lot easier to see it here than to jump over to a terminal to look at it in emacs.

sys/dev/mrsas/mrsas_fp.c
977

Both of these could be physArm++

This revision is now accepted and ready to land.Mar 8 2024, 7:21 PM
sys/dev/mrsas/mrsas_fp.c
977

Agreed, will do it.

In D44282#1010108, @imp wrote:

Looks good, feel free to take up or not my suggestion.

Next time, please generate diffs with -U99999 so that we get the full context. It's a lot easier to see it here than to jump over to a terminal to look at it in emacs.

Sure Warner, noted.

This revision now requires review to proceed.Mar 12 2024, 6:20 AM
This revision was not accepted when it landed; it landed in state Needs Review.Mar 12 2024, 10:08 AM
This revision was automatically updated to reflect the committed changes.