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
382e4a0d84
commit
12a82b6654
@ -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…
x
Reference in New Issue
Block a user