2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00
linux-next/drivers/scsi/aacraid
Raghava Aditya Renukunta c4e2fbca37 scsi: aacraid: Reworked scsi command submission path
Moved the READ and WRITE switch cases to the top. Added a  default
case to the switch case and replaced duplicate scsi result value with a
macro.

The idea is that since most of scsi commands we care about performance
wise are read or write, we need to process them first.

Internally the compiler (GCC) converts a switch case into either a jump
table or a bunch of if else conditions, so placing the often used read,
write cases at the top is an effort in optimization.

Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Signed-off-by: Dave Carroll <David.Carroll@microsemi.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-02-03 10:35:03 -05:00
..
aachba.c scsi: aacraid: Reworked scsi command submission path 2017-02-03 10:35:03 -05:00
aacraid.h scsi: aacraid: Retrieve and update the device types 2017-02-03 10:35:03 -05:00
commctrl.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
comminit.c scsi: aacraid: Added sa firmware support 2017-02-03 10:35:03 -05:00
commsup.c scsi: aacraid: added support for init_struct_8 2017-02-03 10:35:03 -05:00
dpcsup.c aacraid: Remove code to needlessly complete fib 2016-04-29 19:08:24 -04:00
linit.c scsi: aacraid: Added sa firmware support 2017-02-03 10:35:03 -05:00
Makefile [SCSI] aacraid: Add new code for PMC-Sierra's SRC based controller family 2011-03-23 11:36:58 -05:00
nark.c [SCSI] aacraid: Use resource_size_t for IO mem pointers and offsets 2012-07-20 08:58:43 +01:00
rkt.c scsi: aacraid: added support for init_struct_8 2017-02-03 10:35:03 -05:00
rx.c scsi: aacraid: added support for init_struct_8 2017-02-03 10:35:03 -05:00
sa.c scsi: aacraid: added support for init_struct_8 2017-02-03 10:35:03 -05:00
src.c scsi: aacraid: added support for init_struct_8 2017-02-03 10:35:03 -05:00
TODO