mirror of
https://github.com/torvalds/linux.git
synced 2025-11-04 02:30:34 +02:00
io_uring: remove unnecessary barrier after incrementing dropped counter
smp_store_release in io_commit_sqring already orders the store to dropped before the update to SQ head. Signed-off-by: Stefan Bühler <source@stbuehler.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
82ab082c0e
commit
b841f19524
1 changed files with 0 additions and 2 deletions
|
|
@ -1846,8 +1846,6 @@ static bool io_get_sqring(struct io_ring_ctx *ctx, struct sqe_submit *s)
|
||||||
/* drop invalid entries */
|
/* drop invalid entries */
|
||||||
ctx->cached_sq_head++;
|
ctx->cached_sq_head++;
|
||||||
ring->dropped++;
|
ring->dropped++;
|
||||||
/* See comment at the top of this file */
|
|
||||||
smp_wmb();
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue