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)
commit940f5efa63161642b32b8dd82c17089b8ada7cbb
tree6e059e8439b4b503278135071f8274c42c3be013
parent98132d842d4d1ca64c829eb968ff1df53b37aead
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