md: implement ->set_read_only to hook into BLKROSET processing
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Nov 2020 10:00:13 +0000 (11:00 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:29 +0000 (08:14 -0700)
commit118cf084adb3964d06e1667cf7d702e56e5cd2c5
tree30518c7fbb353c3725a49363cbf6043ded08cf8a
parent34919e3ba23a106e04f042f19348d9e55739b35a
md: implement ->set_read_only to hook into BLKROSET processing

Implement the ->set_read_only method instead of parsing the actual
ioctl command.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/md.c