io_uring: fix provided buffers
commit20077a14d75893522015575d0a37cb77cf65fee0
authorDylan Yudaken <dylany@meta.com>
Fri, 11 Nov 2022 11:06:38 +0000 (11 03:06 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 11 Nov 2022 11:06:38 +0000 (11 03:06 -0800)
tree7ff5f1a708efa015413afdffe0e7db171fac48fe
parent324d93b69b21510b0042079f53e5e44cd7278d76
io_uring: fix provided buffers

Summary: The provided buffers pool implementation required cleaning up the pool with no outstanding buffers, or else it segfaulted. This was an unnecessary burden to users, as it can fairly easily wait until all buffers are returned.

Reviewed By: dmm-fb

Differential Revision: D40430074

fbshipit-source-id: 2deaf07a5c4e364c6154eecded364644e3f3ae7e
third-party/folly/src/folly/experimental/io/AsyncIoUringSocket.cpp
third-party/folly/src/folly/experimental/io/IoUringBackend.cpp
third-party/folly/src/folly/experimental/io/IoUringBackend.h
third-party/folly/src/folly/experimental/io/test/IoUringBackendTest.cpp