Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: ufs: core: Do not clear driver-private command data

Tell the SCSI core to skip the memset() call that clears driver-private
data because __ufshcd_setup_cmd() performs all necessary initialization.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251031204029.2883185-23-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
e5f9cc2a 1d0af94f

+10
+10
drivers/ufs/core/ufshcd.c
··· 2996 2996 } 2997 2997 } 2998 2998 2999 + /* 3000 + * The only purpose of this function is to make the SCSI core skip the memset() 3001 + * call for the private command data. 3002 + */ 3003 + static int ufshcd_init_cmd_priv(struct Scsi_Host *host, struct scsi_cmnd *cmd) 3004 + { 3005 + return 0; 3006 + } 3007 + 2999 3008 /** 3000 3009 * ufshcd_queuecommand - main entry point for SCSI requests 3001 3010 * @host: SCSI host pointer ··· 9191 9182 .name = UFSHCD, 9192 9183 .proc_name = UFSHCD, 9193 9184 .map_queues = ufshcd_map_queues, 9185 + .init_cmd_priv = ufshcd_init_cmd_priv, 9194 9186 .queuecommand = ufshcd_queuecommand, 9195 9187 .nr_reserved_cmds = UFSHCD_NUM_RESERVED, 9196 9188 .mq_poll = ufshcd_poll,