md: switch to ->check_events for media change notifications
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Jul 2020 12:25:41 +0000 (14:25 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Jul 2020 22:19:47 +0000 (16:19 -0600)
commita564e23f0f99759f453dbefcb9160dec6d99df96
tree85276e79d4624c891bc37341e87c29e7b5e8ebd6
parent568f2700657794b8258e72983ba508793a658942
md: switch to ->check_events for media change notifications

md is the last driver using the legacy media_changed method.  Switch
it over to (not so) new ->clear_events approach, which also removes the
need for the ->revalidate_disk method.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[axboe: remove unused 'bdops' variable in disk_clear_events()]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/filesystems/locking.rst
block/genhd.c
drivers/md/md.c
include/linux/blkdev.h