aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2022-06-08 10:13:02 +0900
committerMartin K. Petersen <[email protected]>2022-06-10 12:50:05 -0400
commit566d3c57eb526f32951af15866086e236ce1fc8a (patch)
treedc413a322ec41fb9d8ad5813ecc4103eeb05e296 /scripts/bpf_doc.py
parentec1e8adcbdf661c57c395bca342945f4f815add7 (diff)
scsi: scsi_debug: Fix zone transition to full condition
When a write command to a sequential write required or sequential write preferred zone result in the zone write pointer reaching the end of the zone, the zone condition must be set to full AND the number of implicitly or explicitly open zones updated to have a correct accounting for zone resources. However, the function zbc_inc_wp() only sets the zone condition to full without updating the open zone counters, resulting in a zone state machine breakage. Introduce the helper function zbc_set_zone_full() and use it in zbc_inc_wp() to correctly transition zones to the full condition. Link: https://lore.kernel.org/r/[email protected] Fixes: f0d1cf9378bd ("scsi: scsi_debug: Add ZBC zone commands") Reviewed-by: Niklas Cassel <[email protected]> Acked-by: Douglas Gilbert <[email protected]> Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions