summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorXiang Chen <chenxiang66@hisilicon.com>2023-03-07 09:09:14 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2023-03-10 05:50:02 +0300
commitb711ef5e176bf47c10c0d24e21c1486b5331d33f (patch)
treea57a16af6c773f1b58c274425a570050da478efd /tools/perf/scripts/python/task-analyzer.py
parent0e47effa77067d0e5fdd41871941d2b3d38a0e61 (diff)
downloadlinux-b711ef5e176bf47c10c0d24e21c1486b5331d33f.tar.xz
scsi: hisi_sas: Sync complete queue for poll queue
Currently we sync irq to avoid freeing task before using task in I/O completion. After adding io_uring support, we need to do something similar for poll queues. As the process of CQ entries on poll queue are protected by spinlock cq->lock, we can use spin_lock() + spin_unlock() on cq->lock to make sure that CQ entries are processed to completion and then the complete queue is synced. Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com> Link: https://lore.kernel.org/r/1678169355-76215-4-git-send-email-chenxiang66@hisilicon.com Reviewed-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions