Re: [PATCH 1/6] md: switch to ->check_events for media change notifications

Christoph Hellwig
2020-07-08T13:23:35Z

On Wed, Jul 08, 2020 at 03:17:31PM +0200, Guoqing Jiang wrote:
> On 7/8/20 2:25 PM, Christoph Hellwig wrote:
>> -static int md_media_changed(struct gendisk *disk)
>> -{
>> - struct mddev *mddev = disk->private_data;
>> -
>> - return mddev->changed;
>> -}
>
> Maybe we can remove "changed" from struct mddev since no one reads it
> after the change.

The new md_check_events method reads it.