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:
mckusick 2019-03-12 00:10:31 +00:00
parent 382e4a0d84
commit 12a82b6654

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;