Re: [PATCH 5/5] scsi: enable async shutdown support
From: David Jeffery
Date: Wed Apr 08 2026 - 10:17:33 EST
On Tue, Apr 7, 2026 at 12:35 PM John Garry <john.g.garry@xxxxxxxxxx> wrote:
>
>
> > }
> > @@ -1396,6 +1397,7 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)
> > transport_configure_device(&starget->dev);
> >
> > device_enable_async_suspend(&sdev->sdev_gendev);
> > + device_enable_async_shutdown(&sdev->sdev_gendev);
>
> We call device_enable_async_shutdown(&sdev->sdev_gendev) here and
> scsi_sysfs_device_initialize() - any reason for that?
>
It was added to match locations where async suspend is set. But as you
point out, it does appear redundant to use both locations.
David Jeffery