io_uring: fix double unlock for pbuf select
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 12 Jun 2022 13:31:38 +0000 (14:31 +0100)
committerPavel Begunkov <asml.silence@gmail.com>
Mon, 13 Jun 2022 10:37:41 +0000 (11:37 +0100)
commitfc9375e3f763b06c3c90c5f5b2b84d3e07c1f4c2
tree95b6dbbedc00d45624607ccf41895d64cbac241c
parent42db0c00e275877eb92480beaa16b33507dc3bda
io_uring: fix double unlock for pbuf select

io_buffer_select(), which is the only caller of io_ring_buffer_select(),
fully handles locking, mutex unlock in io_ring_buffer_select() will lead
to double unlock.

Fixes: c7fb19428d67d ("io_uring: add support for ring mapped supplied buffers")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
fs/io_uring.c