Update cleaning lru under metadata lock
This prevents deinitializing cleaning policy structures during IO. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
d28451ab4a
commit
841f8122d7
@ -44,9 +44,10 @@ static void _ocf_write_wb_update_bits(struct ocf_request *req)
|
||||
/* set dirty bits, and mark if metadata flushing is required */
|
||||
ocf_set_dirty_map_info(req);
|
||||
}
|
||||
ocf_hb_req_prot_unlock_wr(req);
|
||||
|
||||
ocf_req_set_cleaning_hot(req);
|
||||
|
||||
ocf_hb_req_prot_unlock_wr(req);
|
||||
}
|
||||
|
||||
static void _ocf_write_wb_io_flush_metadata(struct ocf_request *req, int error)
|
||||
|
Loading…
Reference in New Issue
Block a user