aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorXiang Chen <[email protected]>2023-03-07 14:09:14 +0800
committerMartin K. Petersen <[email protected]>2023-03-09 21:50:02 -0500
commitb711ef5e176bf47c10c0d24e21c1486b5331d33f (patch)
treea57a16af6c773f1b58c274425a570050da478efd /lib/test_fortify/write_overflow-strncpy-src.c
parent0e47effa77067d0e5fdd41871941d2b3d38a0e61 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: John Garry <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions