]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
scsi: qedf: fixup bit operations
authorHannes Reinecke <hare@suse.com>
Tue, 26 Mar 2019 07:38:45 +0000 (00:38 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 28 Mar 2019 01:54:52 +0000 (21:54 -0400)
commit78a8ab3cc0f95a66c8fb2429030289103de173e7
tree5fe33202c67a24b03a69d535962cfda5e4597467
parent6d1368e8f987dd4bb1be6506d5416cb90b4ecf7a
scsi: qedf: fixup bit operations

test_bit() is atomic, test_bit() || test_bit() is not. So protect
consecutive bit tests with a lock to avoid races.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_els.c
drivers/scsi/qedf/qedf_main.c