summaryrefslogtreecommitdiff
path: root/drivers/scsi/cxlflash
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2015-12-23 21:15:51 (GMT)
committerMartin K. Petersen <martin.petersen@oracle.com>2016-01-06 20:56:17 (GMT)
commit03996f2064a5c5b7c1bd942794d622179acf2d61 (patch)
treecd07b66915e27358e807fe4faa127f5e70dbb991 /drivers/scsi/cxlflash
parent59635018f9b7ae8b3e304d7a5da6f628b5a1dcf6 (diff)
downloadlinux-03996f2064a5c5b7c1bd942794d622179acf2d61.tar.xz
storvsc: Tighten up the interrupt path
On the interrupt path, we repeatedly establish the pointer to the storvsc_device. While the compiler does inline get_in_stor_device() (and other static functions) in the call chain in the interrupt path, the compiler is repeatedly inlining the call to get_in_stor_device() each time it is invoked. The return value of get_in_stor_device() can be cached in the interrupt path since there is higher level serialization in place to ensure correct handling when the module unload races with the processing of an incoming message from the host. Optimize this code path by caching the pointer to storvsc_device and passing it as an argument. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Reviewed-by: Long Li <longli@microsoft.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Tested-by: Alex Ng <alexng@microsoft.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/cxlflash')
0 files changed, 0 insertions, 0 deletions