…
> +++ b/lib/multipath.c
…
> +static void multipath_partition_scan_work(struct work_struct *work)
> +{
…
> +     mutex_lock(&mpath_disk->disk->open_mutex);
> +     bdev_disk_changed(mpath_disk->disk, false);
> +     mutex_unlock(&mpath_disk->disk->open_mutex);
> +}
…

Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&mpath_disk->disk->open_mutex);”?
https://elixir.bootlin.com/linux/v6.19.3/source/include/linux/mutex.h#L253

Regards,
Markus

Reply via email to