]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/scsi/scsi_debug.c
scsi_debug: use likely hints on fast path
authorDouglas Gilbert <dgilbert@interlog.com>
Mon, 25 Apr 2016 16:16:34 +0000 (12:16 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 29 Apr 2016 23:44:23 +0000 (19:44 -0400)
commitf46eb0e9fc763b7b66c325eb94e6aefa960146d2
tree19ab8555c08d7ab0a7c9ed4a71a388483fdadc0a
parentfd32119b0deac1af90ca3bed145f17d5ad68d5a7
scsi_debug: use likely hints on fast path

The most common commands in normal use are the READ and WRITE SCSI
commands. Use likely and unlikely hints along the path taken by these
commands. Rename check_readiness() to make_ua() and remove associated
dead code. Rename devInfoReg() to find_build_dev_info().

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Hannes Reinicke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c