File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -188,8 +188,7 @@ static void *sd_zbc_alloc_report_buffer(struct scsi_disk *sdkp,
188
188
bufsize = min_t (size_t , bufsize , queue_max_segments (q ) << PAGE_SHIFT );
189
189
190
190
while (bufsize >= SECTOR_SIZE ) {
191
- buf = __vmalloc (bufsize ,
192
- GFP_KERNEL | __GFP_ZERO | __GFP_NORETRY );
191
+ buf = kvzalloc (bufsize , GFP_KERNEL | __GFP_NORETRY );
193
192
if (buf ) {
194
193
* buflen = bufsize ;
195
194
return buf ;
Original file line number Diff line number Diff line change @@ -8623,6 +8623,14 @@ static int ufshcd_add_lus(struct ufs_hba *hba)
8623
8623
ufshcd_init_clk_scaling_sysfs (hba );
8624
8624
}
8625
8625
8626
+ /*
8627
+ * The RTC update code accesses the hba->ufs_device_wlun->sdev_gendev
8628
+ * pointer and hence must only be started after the WLUN pointer has
8629
+ * been initialized by ufshcd_scsi_add_wlus().
8630
+ */
8631
+ schedule_delayed_work (& hba -> ufs_rtc_update_work ,
8632
+ msecs_to_jiffies (UFS_RTC_UPDATE_INTERVAL_MS ));
8633
+
8626
8634
ufs_bsg_probe (hba );
8627
8635
scsi_scan_host (hba -> host );
8628
8636
@@ -8717,8 +8725,6 @@ static int ufshcd_post_device_init(struct ufs_hba *hba)
8717
8725
ufshcd_force_reset_auto_bkops (hba );
8718
8726
8719
8727
ufshcd_set_timestamp_attr (hba );
8720
- schedule_delayed_work (& hba -> ufs_rtc_update_work ,
8721
- msecs_to_jiffies (UFS_RTC_UPDATE_INTERVAL_MS ));
8722
8728
8723
8729
if (!hba -> max_pwr_info .is_valid )
8724
8730
return 0 ;
You can’t perform that action at this time.
0 commit comments