Skip to content

Commit ecc3bc9

Browse files
Matthew WilcoxChristoph Hellwig
authored andcommitted
fusion: Add free msg frames to the head, not tail of list
Reusing a msg frame quickly means it's still cache-hot. This yields a small but noticable performance improvement in a well-known database benchmark. This improvement is already present in the mpt3sas driver. Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com> Reviewed-by: Nicholas Bellinger <nab@linux-iscsi.org> Reviewed-by: Praveen Krishnamoorthy <Praveen.krishnamoorthy@lsi.com> Acked-by: Sreekanth Reddy <Sreekanth.reddy@lsi.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 049b3e8 commit ecc3bc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/message/fusion/mptbase.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ mpt_free_msg_frame(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf)
10371037
goto out;
10381038
/* signature to know if this mf is freed */
10391039
mf->u.frame.linkage.arg1 = cpu_to_le32(0xdeadbeaf);
1040-
list_add_tail(&mf->u.frame.linkage.list, &ioc->FreeQ);
1040+
list_add(&mf->u.frame.linkage.list, &ioc->FreeQ);
10411041
#ifdef MFCNT
10421042
ioc->mfcnt--;
10431043
#endif

0 commit comments

Comments
 (0)