@@ -24,6 +24,7 @@
#include <linux/sched/clock.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_dbg.h>
+#include <scsi/scsi_devinfo.h>
#include <scsi/scsi_driver.h>
#include <scsi/scsi_eh.h>
#include "ufshcd-priv.h"
@@ -5056,6 +5057,9 @@ static int ufshcd_slave_alloc(struct scsi_device *sdev)
/* WRITE_SAME command is not supported */
sdev->no_write_same = 1;
+ /* Use SYNCHRONIZE CACHE instead of FUA to improve performance */
+ sdev->sdev_bflags = BLIST_BROKEN_FUA;
+
ufshcd_lu_init(hba, sdev);
ufshcd_setup_links(hba, sdev);