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:
parent
3532718257
commit
42a5a356a8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user