projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7a4783
)
md: use rdev_read_only in restart_array
author
Christoph Hellwig
<hch@lst.de>
Mon, 1 Feb 2021 13:17:21 +0000
(14:17 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 1 Feb 2021 16:35:20 +0000
(09:35 -0700)
Make the read-only check in restart_array identical to the other two
read-only checks.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index
7c0f610
..
21da0c4
100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-6143,7
+6143,7
@@
static int restart_array(struct mddev *mddev)
if (test_bit(Journal, &rdev->flags) &&
!test_bit(Faulty, &rdev->flags))
has_journal = true;
- if (
bdev_read_only(rdev->b
dev))
+ if (
rdev_read_only(r
dev))
has_readonly = true;
}
rcu_read_unlock();