Decrement sc_writes when BIO_DELETE requests complete.
Otherwise a gmirror that has received a BIO_DELETE request will never be marked clean (unless sc_writes overflows). MFC after: 1 week Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
6e16d0bc43
commit
a3584ee355
@ -937,7 +937,7 @@ g_mirror_regular_request(struct bio *bp)
|
||||
pbp = bp->bio_parent;
|
||||
sc = pbp->bio_to->private;
|
||||
bp->bio_from->index--;
|
||||
if (bp->bio_cmd == BIO_WRITE)
|
||||
if (bp->bio_cmd == BIO_WRITE || bp->bio_cmd == BIO_DELETE)
|
||||
sc->sc_writes--;
|
||||
disk = bp->bio_from->private;
|
||||
if (disk == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user