scsi: core: scsi_io_completion hints on fastpath
authorDouglas Gilbert <dgilbert@interlog.com>
Sat, 23 Jun 2018 10:22:19 +0000 (12:22 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Jun 2018 16:27:06 +0000 (12:27 -0400)
commit0d437906f6dca6167b37c8e1f6f6ec395bde6230
tree5917038df8b074f3f453d99ec88f414c5980fa4b
parent4ae61c68f7d72d98e7e41a8d4ec21bbaa46b63d4
scsi: core: scsi_io_completion hints on fastpath

Add likely() and unlikely() hints to conditionals on or near the fastpath.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c