io_uring-6.11-20240802
-----BEGIN PGP SIGNATURE----- iQJEBAABCAAuFiEEwPw5LcreJtl1+l5K99NY+ylx4KYFAmas+1sQHGF4Ym9lQGtl cm5lbC5kawAKCRD301j7KXHgpqbRD/9YlS2eql1/qSOpjOw0BpOUfBUpNRNgFZyL L1CqP5Jv8ivnpM/pOkLrZofWlA7fRj6BJsDxU9S2ewb0TDe2Lwfd/5xk+vWE8+ce 1KQXT355pupf4aHbPofZ0DnShZEhy7vd9Kq9YSWqemhmGJq/2mV+txlU2bkVSz8w 14DKBqKLJ0OH7SrTrAqjjhFGaCSXfNqj9n+het1t3Sm22YDDPvwlVPO6xFGQd84S +Obz/I0Ifs5p+5PRrmrKa4vj0Elh4QJ+Vp5n+fKxzuYf7InpA4kIHbOsPDLGGCkW LdoV3ePzlV7MBEU8FEnJE39PzhDDyehw4Tgt6cHuVnJ3vWGVgYCenF1hOX75AafM CN3QXwbZWbnzZTXnjbzQ9It2khRpQXRh92A7z1+i6tGYFLY+CfQLr9fCHEXbxcH+ hvtB0gQ5YZiXGovTTsm0ODVLML8AWEOpfBDhauh+HCpvgzNYPsOZpUJG/7UNL2eE gDgXgbRFTPb7jq65U16mD1ux8J2eQjqXTjp51gP+duv4cOTtKxOZxAs1ssd9rWK/ Ra6XsEZzb0e1IwiU/NdtFpsHrNzz/e6BJTuVAPkWoLuzAQYBKvnW14Mt0EUbfxTH rwf548uApy1X92RaCe7HcVNLFZp/2r30StEbg+G31lkaEy911fLHhIePv0vfIYxb Wb938OjA3w== =ONF/ -----END PGP SIGNATURE----- Merge tag 'io_uring-6.11-20240802' of git://git.kernel.dk/linux Pull io_uring fixes from Jens Axboe: "Two minor tweaks for the NAPI handling, both from Olivier: - Kill two unused list definitions - Ensure that multishot NAPI doesn't age away" * tag 'io_uring-6.11-20240802' of git://git.kernel.dk/linux: io_uring: remove unused local list heads in NAPI functions io_uring: keep multishot request NAPI timeout current
This commit is contained in:
commit
17712b7ea0
@ -205,7 +205,6 @@ void io_napi_init(struct io_ring_ctx *ctx)
|
|||||||
void io_napi_free(struct io_ring_ctx *ctx)
|
void io_napi_free(struct io_ring_ctx *ctx)
|
||||||
{
|
{
|
||||||
struct io_napi_entry *e;
|
struct io_napi_entry *e;
|
||||||
LIST_HEAD(napi_list);
|
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
spin_lock(&ctx->napi_lock);
|
spin_lock(&ctx->napi_lock);
|
||||||
@ -315,7 +314,6 @@ void __io_napi_busy_loop(struct io_ring_ctx *ctx, struct io_wait_queue *iowq)
|
|||||||
*/
|
*/
|
||||||
int io_napi_sqpoll_busy_poll(struct io_ring_ctx *ctx)
|
int io_napi_sqpoll_busy_poll(struct io_ring_ctx *ctx)
|
||||||
{
|
{
|
||||||
LIST_HEAD(napi_list);
|
|
||||||
bool is_stale = false;
|
bool is_stale = false;
|
||||||
|
|
||||||
if (!READ_ONCE(ctx->napi_busy_poll_dt))
|
if (!READ_ONCE(ctx->napi_busy_poll_dt))
|
||||||
|
@ -347,6 +347,7 @@ static int io_poll_check_events(struct io_kiocb *req, struct io_tw_state *ts)
|
|||||||
v &= IO_POLL_REF_MASK;
|
v &= IO_POLL_REF_MASK;
|
||||||
} while (atomic_sub_return(v, &req->poll_refs) & IO_POLL_REF_MASK);
|
} while (atomic_sub_return(v, &req->poll_refs) & IO_POLL_REF_MASK);
|
||||||
|
|
||||||
|
io_napi_add(req);
|
||||||
return IOU_POLL_NO_ACTION;
|
return IOU_POLL_NO_ACTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user