Merge pull request #681 from arutk/extra_seek_mio
Add extra data seek before data fill in mio
This commit is contained in:
commit
8e7fae110e
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright(c) 2012-2021 Intel Corporation
|
* Copyright(c) 2012-2022 Intel Corporation
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
#include "metadata.h"
|
#include "metadata.h"
|
||||||
@ -229,6 +229,8 @@ static int metadata_io_do(struct ocf_request *req)
|
|||||||
struct ocf_io *io;
|
struct ocf_io *io;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
ctx_data_seek(cache->owner, m_req->data, ctx_data_seek_begin, 0);
|
||||||
|
|
||||||
/* Fill with the latest metadata. */
|
/* Fill with the latest metadata. */
|
||||||
if (m_req->req.rw == OCF_WRITE) {
|
if (m_req->req.rw == OCF_WRITE) {
|
||||||
ocf_metadata_start_shared_access(&cache->metadata.lock,
|
ocf_metadata_start_shared_access(&cache->metadata.lock,
|
||||||
|
Loading…
Reference in New Issue
Block a user