]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
pm8001: add a new spinlock to protect the CCB
authorTomas Henzl <thenzl@redhat.com>
Wed, 9 Jul 2014 11:51:01 +0000 (17:21 +0530)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:04 +0000 (17:17 -0400)
commit646cdf0083e3d4a9b995f37b72c3c8a22d9307de
treef0730421a40f2037a840489a8afdce0e4b2c1598
parent5533abca06e07121697ed1d30863ce03e7c518e5
pm8001: add a new spinlock to protect the CCB

Patch adds a new spinlock to protect the ccb management.
It may happen that concurrent threads become the same tag value
from the 'alloc' function', the spinlock prevents this situation.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com>
Acked-by: Jack Wang <xjtuwjp@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/pm8001/pm8001_init.c
drivers/scsi/pm8001/pm8001_sas.c
drivers/scsi/pm8001/pm8001_sas.h