aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 0ff1bbf6c90e..447ddcbc9566 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -2651,7 +2651,7 @@ state_show(struct md_rdev *rdev, char *page)
2651{ 2651{
2652 char *sep = ","; 2652 char *sep = ",";
2653 size_t len = 0; 2653 size_t len = 0;
2654 unsigned long flags = ACCESS_ONCE(rdev->flags); 2654 unsigned long flags = READ_ONCE(rdev->flags);
2655 2655
2656 if (test_bit(Faulty, &flags) || 2656 if (test_bit(Faulty, &flags) ||
2657 (!test_bit(ExternalBbl, &flags) && 2657 (!test_bit(ExternalBbl, &flags) &&