summaryrefslogtreecommitdiffstats
path: root/samples/kfifo
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-05-31 09:48:07 +0200
committerJens Axboe <axboe@kernel.dk>2024-06-14 10:19:44 -0600
commit969f17e10f5b732c05186ee0126c8a08166d0cda (patch)
tree325df113acefa7b4fbd05ae40dd32b575c43b3fc /samples/kfifo
parent804e498e0496d889090f32f812b5ce1a4f2aa63e (diff)
downloadlinux-stable-969f17e10f5b732c05186ee0126c8a08166d0cda.tar.gz
linux-stable-969f17e10f5b732c05186ee0126c8a08166d0cda.tar.bz2
linux-stable-969f17e10f5b732c05186ee0126c8a08166d0cda.zip
sr: convert to the atomic queue limits API
Assign all queue limits through a local queue_limits variable and queue_limits_commit_update so that we can't race updating them from multiple places, and free the queue when updating them so that in-progress I/O submissions don't see half-updated limits. Also use the chance to clean up variable names to standard ones. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Link: https://lore.kernel.org/r/20240531074837.1648501-13-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'samples/kfifo')
0 files changed, 0 insertions, 0 deletions