mirror of
https://github.com/opnsense/src.git
synced 2026-07-15 20:13:02 -04:00
In g_mirror_regular_request() upon successful delivery treat
BIO_DELETE requests same way as BIO_WRITE removing them from queue. This fixes panic with BIO_DELETE operations on geom_mirror. Reviewed by: pjd
This commit is contained in:
parent
593a9dc9b8
commit
b0ae63ca25
1 changed files with 2 additions and 1 deletions
|
|
@ -891,7 +891,8 @@ g_mirror_regular_request(struct bio *bp)
|
|||
if (pbp->bio_children == pbp->bio_inbed) {
|
||||
G_MIRROR_LOGREQ(3, pbp, "Request delivered.");
|
||||
pbp->bio_completed = pbp->bio_length;
|
||||
if (pbp->bio_cmd == BIO_WRITE) {
|
||||
if (pbp->bio_cmd == BIO_WRITE ||
|
||||
pbp->bio_cmd == BIO_DELETE) {
|
||||
bioq_remove(&sc->sc_inflight, pbp);
|
||||
/* Release delayed sync requests if possible. */
|
||||
g_mirror_sync_release(sc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue