[SCSI] libfc: cache align struct fc_fcp_pkt fields
Re-arrange its fields to avoid padding and have better cacheline alignments. Removed not used start_time, end_time and last_pkt_time fields. This all reduced this struct size to 448 from 480 and that also reduced one cacheline on x86_64 beside eliminating 8 pads. However kept logical fields together. Signed-off-by: Vasu Dev <vasu.dev@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Yi Zou <yi.zou@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:

committed by
James Bottomley

parent
5c609ff937
commit
ed26cfece6
@@ -759,7 +759,6 @@ static void fc_fcp_recv(struct fc_seq *seq, struct fc_frame *fp, void *arg)
|
||||
goto out;
|
||||
if (fc_fcp_lock_pkt(fsp))
|
||||
goto out;
|
||||
fsp->last_pkt_time = jiffies;
|
||||
|
||||
if (fh->fh_type == FC_TYPE_BLS) {
|
||||
fc_fcp_abts_resp(fsp, fp);
|
||||
@@ -1148,7 +1147,6 @@ static int fc_fcp_cmd_send(struct fc_lport *lport, struct fc_fcp_pkt *fsp,
|
||||
rc = -1;
|
||||
goto unlock;
|
||||
}
|
||||
fsp->last_pkt_time = jiffies;
|
||||
fsp->seq_ptr = seq;
|
||||
fc_fcp_pkt_hold(fsp); /* hold for fc_fcp_pkt_destroy */
|
||||
|
||||
|
Reference in New Issue
Block a user