]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: sd: Call sd_revalidate_disk() for ioctl(BLKRRPART)
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Jun 2021 11:55:04 +0000 (13:55 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 23 Jun 2021 02:02:20 +0000 (22:02 -0400)
commit806942bde42d01eb21729ac03fea61ae122c7b0f
tree15b7cb92667c77c0999097fb538f29b7a752116d
parentc556606314e59238bf1bbce0da6bd6e8dcaaa604
scsi: sd: Call sd_revalidate_disk() for ioctl(BLKRRPART)

While the disk state has nothing to do with partitions, BLKRRPART is used
to force a full revalidate after things like a disk format for historical
reasons. Restore that behavior.

Link: https://lore.kernel.org/r/20210617115504.1732350-1-hch@lst.de
Fixes: 6c671f955f7c ("sd: use bdev_check_media_change")
Reported-by: Xiang Chen <chenxiang66@hisilicon.com>
Tested-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c