summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-06-17 06:24:26 -0600
committerJens Axboe <axboe@kernel.dk>2022-06-17 06:24:26 -0600
commit6436c770f120a9ffeb4e791650467f30f1d062d1 (patch)
treec1130ff61dfa4a81d56d2309a8a5c101d0f6bd3c /drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
parent32fc810b364f3dd30930c594e461ffa1761fef39 (diff)
io_uring: recycle provided buffer if we punt to io-wq
io_arm_poll_handler() will recycle the buffer appropriately if we end up arming poll (or if we're ready to retry), but not for the io-wq case if we have attempted poll first. Explicitly recycle the buffer to avoid both hanging on to it too long, but also to avoid multiple reads grabbing the same one. This can happen for ring mapped buffers, since it hasn't necessarily been committed. Fixes: c7fb19428d67 ("io_uring: add support for ring mapped supplied buffers") Link: https://github.com/axboe/liburing/issues/605 Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c')
0 files changed, 0 insertions, 0 deletions