bhyve: don't flush readonly device at blockif_pause
Reviewed by: corvink, markj MFC after: 1 week Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D38855
This commit is contained in:
parent
755dcd5e49
commit
5c0a031259
|
@ -1009,7 +1009,7 @@ blockif_pause(struct blockif_ctxt *bc)
|
||||||
pthread_cond_wait(&bc->bc_work_done_cond, &bc->bc_mtx);
|
pthread_cond_wait(&bc->bc_work_done_cond, &bc->bc_mtx);
|
||||||
pthread_mutex_unlock(&bc->bc_mtx);
|
pthread_mutex_unlock(&bc->bc_mtx);
|
||||||
|
|
||||||
if (blockif_flush_bc(bc))
|
if (!bc->bc_rdonly && blockif_flush_bc(bc))
|
||||||
fprintf(stderr, "%s: [WARN] failed to flush backing file.\r\n",
|
fprintf(stderr, "%s: [WARN] failed to flush backing file.\r\n",
|
||||||
__func__);
|
__func__);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue