md: use rdev_read_only in restart_array
authorChristoph Hellwig <hch@lst.de>
Mon, 1 Feb 2021 13:17:21 +0000 (14:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Feb 2021 16:35:20 +0000 (09:35 -0700)
commita42e0d70c517c88c52154bf74ec39092d897aaca
tree553b10fdbbea66532cd361d18674d38468d93514
parentd7a4783883d350e33308bf7c9ef0fe4e38f9c8e2
md: use rdev_read_only in restart_array

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