diff options
author | Xiang Chen <[email protected]> | 2023-03-07 14:09:14 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2023-03-09 21:50:02 -0500 |
commit | b711ef5e176bf47c10c0d24e21c1486b5331d33f (patch) | |
tree | a57a16af6c773f1b58c274425a570050da478efd /drivers/usb/cdns3/cdns3-debug.h | |
parent | 0e47effa77067d0e5fdd41871941d2b3d38a0e61 (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 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions