On 3/23/23 03:28, Damien Le Moal wrote:
For the zone append emulation, the write locking is done by sd.c and the upper layer does not restrict to one append per zone. So we actually could envision a UFS version of the sd write locking calls that is optimized for the device capabilities and we can keep a common upper layer (which is preferable in my opinion).
I see a blk_req_zone_write_trylock() call in sd_zbc_prepare_zone_append() and a blk_req_zone_write_unlock() call in sd_zbc_complete() for REQ_OP_ZONE_APPEND operations. Does this mean that the sd_zbc.c code restricts the queue depth to one per zone for REQ_OP_ZONE_APPEND operations?
Thanks, Bart.