Hi Martin, This patch series includes the following changes: - Fix a deadlock in the UFS error handler. - Add polling support in the UFS driver. - Several smaller fixes for the UFS driver. Please consider these UFS driver kernel patches for kernel v5.17. Thanks, Bart. Changes compared to v3: - Dropped patch "scsi: core: Fix a race between scsi_done() and scsi_times_out()" since the conversation around that patch is still ongoing. - Added patch "scsi: ufs: Remove hba->cmd_queue". - Modified patch "scsi: ufs: Optimize the command queueing code". Changes compared to v2: - Dropped SCSI core patches that add support for internal commands. - Reworked patch "Fix a deadlock in the error handler" such that it uses a reserved tag as proposed by Adrian. - Split patch "ufs: Introduce ufshcd_release_scsi_cmd()" into two patches. Changes compared to v1: - Add internal command support to the SCSI core. - Reworked patch "ufs: Optimize the command queueing code". Bart Van Assche (17): scsi: core: Fix scsi_device_max_queue_depth() scsi: ufs: Rename a function argument scsi: ufs: Remove is_rpmb_wlun() scsi: ufs: Remove the sdev_rpmb member scsi: ufs: Remove dead code scsi: ufs: Fix race conditions related to driver data scsi: ufs: Remove ufshcd_any_tag_in_use() scsi: ufs: Rework ufshcd_change_queue_depth() scsi: ufs: Fix a deadlock in the error handler scsi: ufs: Remove hba->cmd_queue scsi: ufs: Remove the 'update_scaling' local variable scsi: ufs: Introduce ufshcd_release_scsi_cmd() scsi: ufs: Improve SCSI abort handling further scsi: ufs: Fix a kernel crash during shutdown scsi: ufs: Stop using the clock scaling lock in the error handler scsi: ufs: Optimize the command queueing code scsi: ufs: Implement polling support drivers/scsi/scsi.c | 4 +- drivers/scsi/ufs/tc-dwc-g210-pci.c | 1 - drivers/scsi/ufs/ufs-exynos.c | 4 +- drivers/scsi/ufs/ufshcd-pci.c | 2 - drivers/scsi/ufs/ufshcd-pltfrm.c | 2 - drivers/scsi/ufs/ufshcd.c | 300 ++++++++++++++++------------- drivers/scsi/ufs/ufshcd.h | 9 +- 7 files changed, 174 insertions(+), 148 deletions(-)