Re: [PATCH] sr: Avoid that opening a CD-ROM hangs with runtime power management enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bart,

> Surround scsi_execute() calls with scsi_autopm_get_device() and
> scsi_autopm_put_device(). Note: removing sr_mutex protection from
> the scsi_cd_get() and scsi_cd_put() calls is safe because the
> purpose of sr_mutex is to serialize cdrom_*() calls.
>
> This patch avoids that complaints similar to the following appear in
> the kernel log if runtime power management is enabled:

Applied to 4.18/scsi-fixes, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux