Please enable JavaScript.
Coggle requires JavaScript to display documents.
ublk2-multishot-fetch - Coggle Diagram
ublk2-multishot-fetch
problems
multiple writers in ublk_queue_rq
s
in each ublk_queue_rqs()
add req into per-queue list
select one fetch uring_cmd for running TW
only select & sched if there isn't active fetch uring_cmd
single reader in fetch TW func
anytime just allow single fetch TW func
how to avoid lock in fetch TW func
solutions
naive solution
use spin_lock
there could be contention from both sides
kfifo
support multiple writer vs. single reader
lock is only required in writer side
but why duplicated commit happen?
try lock and see if the issue can be avoided?
no difference
check if single active fcmd rule isn't respected
issue is on fetch buffer
ublk_batch_deinit_fetch_buf 1: off 1014 len 4096 res -105
single active_fcmd rule is broken?