diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2025-10-31 23:39:31 +0300 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2025-11-13 01:02:34 +0300 |
| commit | 22089c218037ca7cd50d4fa20e8b5bd746a9b397 (patch) | |
| tree | 1cdfbb962d39b530d5298ea947084008730b514e /scripts/stackusage | |
| parent | e5f9cc2af9a82700e989ac08be3c85c25046a6f6 (diff) | |
| download | linux-22089c218037ca7cd50d4fa20e8b5bd746a9b397.tar.xz | |
scsi: ufs: core: Optimize the hot path
Set .cmd_size in the SCSI host template such that the SCSI core makes
struct scsi_cmnd and struct ufshcd_lrb adjacent. Convert the cmd->lrbp
and lrbp->cmd memory loads into pointer offset calculations. Remove the
data structure members that became superfluous, namely ufshcd_lrb.cmd
and ufs_hba.lrb. Since ufshcd_lrb.cmd is removed, this pointer cannot be
used anymore to test whether or not a command is a SCSI command.
Introduce a new function for this purpose, namely ufshcd_is_scsi_cmd().
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251031204029.2883185-24-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
