diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2022-03-22 14:07:58 +0000 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2022-04-24 17:34:16 -0600 |
| commit | d487b43cd3276e40723641510cbd2d33da4f6800 (patch) | |
| tree | bfe76d6586ca8fbbfb5aa5f760558392cd10a1b0 /lib/string_helpers.c | |
| parent | 773697b610bff9451cf67d4f57b08d68c4b1a832 (diff) | |
io_uring: optimise mutex locking for submit+iopoll
Both submittion and iopolling requires holding uring_lock. IOPOLL can
users do them together in a single syscall, however it would still do 2
pairs of lock/unlock. Optimise this case combining locking into one
lock/unlock pair, which especially nice for low QD.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/034b6c41658648ad3ad3c9485ac8eb546f010bc4.1647957378.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
