Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a22bd5ff authored by Yan, Zheng's avatar Yan, Zheng Committed by Ilya Dryomov
Browse files

ceph: set user pages dirty after direct IO read



Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
parent 779fe0fb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -708,7 +708,7 @@ static void ceph_aio_complete_req(struct ceph_osd_request *req)
		}
	}

	ceph_put_page_vector(osd_data->pages, num_pages, false);
	ceph_put_page_vector(osd_data->pages, num_pages, !aio_req->write);
	ceph_osdc_put_request(req);

	if (rc < 0)
@@ -964,7 +964,7 @@ ceph_direct_read_write(struct kiocb *iocb, struct iov_iter *iter,
				len = ret;
		}

		ceph_put_page_vector(pages, num_pages, false);
		ceph_put_page_vector(pages, num_pages, !write);

		ceph_osdc_put_request(req);
		if (ret < 0)