Add KASSERT to the softdep_disk_write_complete() function in the

soft dependency code to ensure that it will be able to avoid a
dangling dependency.

Sponsored by: Netflix
This commit is contained in:
Kirk McKusick 2019-03-12 00:10:31 +00:00
parent 3532718257
commit 42a5a356a8

View File

@ -11036,6 +11036,9 @@ softdep_disk_write_complete(bp)
struct buf *sbp;
ump = softdep_bp_to_mp(bp);
KASSERT(LIST_EMPTY(&bp->b_dep) || ump != NULL,
("softdep_disk_write_complete: softdep_bp_to_mp returned NULL "
"with outstanding dependencies for buffer %p", bp));
if (ump == NULL)
return;