Skip to content

Commit ec95502

Browse files
committed
Merge tag 'io_uring-5.13-2021-06-03' of git://git.kernel.dk/linux-block
Pull io_uring fix from Jens Axboe: "Just a single one-liner fix for an accounting regression in this release" * tag 'io_uring-5.13-2021-06-03' of git://git.kernel.dk/linux-block: io_uring: fix misaccounting fix buf pinned pages
2 parents fd2ff27 + 216e583 commit ec95502

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/io_uring.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8228,6 +8228,7 @@ static int io_buffer_account_pin(struct io_ring_ctx *ctx, struct page **pages,
82288228
{
82298229
int i, ret;
82308230

8231+
imu->acct_pages = 0;
82318232
for (i = 0; i < nr_pages; i++) {
82328233
if (!PageCompound(pages[i])) {
82338234
imu->acct_pages++;

0 commit comments

Comments
 (0)