qed.c (5dfd80e38b63dc5bf2202bc87a9b1a3e1460efb9) qed.c (004915a96a7a40e942ac85e6d22518cbcd283506)
1/*
2 * QEMU Enhanced Disk Format
3 *
4 * Copyright IBM, Corp. 2010
5 *
6 * Authors:
7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
8 * Anthony Liguori <aliguori@us.ibm.com>

--- 1124 unchanged lines hidden (view full) ---

1133out:
1134 qemu_co_mutex_lock(&s->table_lock);
1135 return ret;
1136}
1137
1138/**
1139 * Check if the QED_F_NEED_CHECK bit should be set during allocating write
1140 */
1/*
2 * QEMU Enhanced Disk Format
3 *
4 * Copyright IBM, Corp. 2010
5 *
6 * Authors:
7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
8 * Anthony Liguori <aliguori@us.ibm.com>

--- 1124 unchanged lines hidden (view full) ---

1133out:
1134 qemu_co_mutex_lock(&s->table_lock);
1135 return ret;
1136}
1137
1138/**
1139 * Check if the QED_F_NEED_CHECK bit should be set during allocating write
1140 */
1141static bool qed_should_set_need_check(BDRVQEDState *s)
1141static bool GRAPH_RDLOCK qed_should_set_need_check(BDRVQEDState *s)
1142{
1143 /* The flush before L2 update path ensures consistency */
1144 if (s->bs->backing) {
1145 return false;
1146 }
1147
1148 return !(s->header.features & QED_F_NEED_CHECK);
1149}

--- 525 unchanged lines hidden ---
1142{
1143 /* The flush before L2 update path ensures consistency */
1144 if (s->bs->backing) {
1145 return false;
1146 }
1147
1148 return !(s->header.features & QED_F_NEED_CHECK);
1149}

--- 525 unchanged lines hidden ---