Skip to content

Commit b5940fe

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: ufs: core: Reduce the size of struct ufshcd_lrb
The size of the data structures that are used in the hot path matters for performance (IOPS). Hence this patch that reduces the size of struct ufshcd_lrb on 64-bit systems by 16 bytes. The size of this data structure is reduced from 152 to 136 bytes. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20250819154356.2256952-1-bvanassche@acm.org Reviewed-by: Peter Wang <peter.wang@mediatek.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent cb7cc0c commit b5940fe

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

include/ufs/ufshcd.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ struct ufs_pm_lvl_states {
167167
* @task_tag: Task tag of the command
168168
* @lun: LUN of the command
169169
* @intr_cmd: Interrupt command (doesn't participate in interrupt aggregation)
170+
* @req_abort_skip: skip request abort task flag
170171
* @issue_time_stamp: time stamp for debug purposes (CLOCK_MONOTONIC)
171172
* @issue_time_stamp_local_clock: time stamp for debug purposes (local_clock)
172173
* @compl_time_stamp: time stamp for statistics (CLOCK_MONOTONIC)
173174
* @compl_time_stamp_local_clock: time stamp for debug purposes (local_clock)
174175
* @crypto_key_slot: the key slot to use for inline crypto (-1 if none)
175176
* @data_unit_num: the data unit number for the first block for inline crypto
176-
* @req_abort_skip: skip request abort task flag
177177
*/
178178
struct ufshcd_lrb {
179179
struct utp_transfer_req_desc *utr_descriptor_ptr;
@@ -193,6 +193,7 @@ struct ufshcd_lrb {
193193
int task_tag;
194194
u8 lun; /* UPIU LUN id field is only 8-bit wide */
195195
bool intr_cmd;
196+
bool req_abort_skip;
196197
ktime_t issue_time_stamp;
197198
u64 issue_time_stamp_local_clock;
198199
ktime_t compl_time_stamp;
@@ -201,8 +202,6 @@ struct ufshcd_lrb {
201202
int crypto_key_slot;
202203
u64 data_unit_num;
203204
#endif
204-
205-
bool req_abort_skip;
206205
};
207206

208207
/**

0 commit comments

Comments
 (0)