]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: pm8001: Use non-atomic bitmap ops for tag alloc + free
authorJohn Garry <john.garry@huawei.com>
Fri, 10 Jun 2022 16:46:41 +0000 (00:46 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Jun 2022 01:45:09 +0000 (21:45 -0400)
commitdc32dfb4ee47d79e95e06e5b2b739e479d354134
tree6e059e8439b4b503278135071f8274c42c3be013
parent165b26e47872b5f2a61e26247bfadefebebcb57e
scsi: pm8001: Use non-atomic bitmap ops for tag alloc + free

In pm8001_tag_alloc() we don't require atomic set_bit() as we are already
in atomic context. In pm8001_tag_free() we should use the same host
spinlock to protect clearing the tag (and then don't require the atomic
clear_bit()).

Link: https://lore.kernel.org/r/1654879602-33497-4-git-send-email-john.garry@huawei.com
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_sas.c