]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Remove unnecessary locking from the target code
authorBart Van Assche <bvanassche@acm.org>
Wed, 17 Apr 2019 21:44:32 +0000 (14:44 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 29 Apr 2019 21:24:50 +0000 (17:24 -0400)
commitd38e7f008a317b0f46f7ae3edca3c2015c513405
tree277ba0ac7aa13a1b340110379c26be9cd906ed84
parent1177e4fa3928761ac09d2d75ba34c7a582e7877f
scsi: qla2xxx: Remove unnecessary locking from the target code

All callbacks from the target core into the qla2xxx driver and also all I/O
completion functions are serialized per command. Since .cmd_sent_to_fw and
.trc_flags are only modified from inside these functions it is not
necessary to protect it with locking. Remove the superfluous locking.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c
drivers/scsi/qla2xxx/tcm_qla2xxx.c