On 11/14/19 3:34 PM, Christoph Hellwig wrote: > In general drivers should never mess with partition tables directly. > Unfortunately s390 and loop do for somewhat historic reasons, but they > can use bdev_disk_changed directly instead when we export it as they > satisfy the sanity checks we have in __blkdev_reread_part. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > Reviewed-by: Stefan Haberland <sth@xxxxxxxxxxxxx> [dasd] > Reviewed-by: Jan Kara <jack@xxxxxxx> > --- > block/ioctl.c | 35 +++++---------------------------- > drivers/block/loop.c | 13 +++++++----- > drivers/s390/block/dasd_genhd.c | 4 +++- > fs/block_dev.c | 7 +++++++ > include/linux/fs.h | 2 -- > 5 files changed, 23 insertions(+), 38 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 247165 (AG München), GF: Felix Imendörffer