diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-03 11:00:14 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-11-16 08:14:29 -0700 |
commit | 2c1b6ec170423bb032e825d4d9b2780bac4ce1a9 (patch) | |
tree | 6b30105be5bf36d46852354f5ad55b07ec0fdf26 /drivers/s390/block/dasd.c | |
parent | 118cf084adb3964d06e1667cf7d702e56e5cd2c5 (diff) | |
download | linux-2c1b6ec170423bb032e825d4d9b2780bac4ce1a9.tar.bz2 |
dasd: 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>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/s390/block/dasd.c')
-rw-r--r-- | drivers/s390/block/dasd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index eb17fea8075c..db24e04ee978 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c @@ -3394,6 +3394,7 @@ dasd_device_operations = { .ioctl = dasd_ioctl, .compat_ioctl = dasd_ioctl, .getgeo = dasd_getgeo, + .set_read_only = dasd_set_read_only, }; /******************************************************************************* |