On 9/12/19 2:35 AM, Stanley Chu wrote: > Some devices may skip blk_pm_runtime_init() and have null pointer in > its request_queue->dev. For example, SCSI devices of UFS Well-Known > LUNs. > > Currently the null pointer is checked by the user of > blk_set_runtime_active(), i.e., scsi_dev_type_resume(). It is better > to check it by blk_set_runtime_active() itself instead of by its > users. Applied, thanks. -- Jens Axboe