Cannot do MALLOC with M_WAITOK while holding ACQUIRE_LOCK
Obtained from: Ethan Solomita <ethan@geocast.com>
This commit is contained in:
parent
0deb7ddcd4
commit
52a3bfa2e7
@ -2837,11 +2837,11 @@ softdep_disk_io_initiation(bp)
|
||||
/*
|
||||
* Replace up-to-date version with safe version.
|
||||
*/
|
||||
MALLOC(indirdep->ir_saveddata, caddr_t, bp->b_bcount,
|
||||
M_INDIRDEP, M_WAITOK);
|
||||
ACQUIRE_LOCK(&lk);
|
||||
indirdep->ir_state &= ~ATTACHED;
|
||||
indirdep->ir_state |= UNDONE;
|
||||
MALLOC(indirdep->ir_saveddata, caddr_t, bp->b_bcount,
|
||||
M_INDIRDEP, M_WAITOK);
|
||||
bcopy(bp->b_data, indirdep->ir_saveddata, bp->b_bcount);
|
||||
bcopy(indirdep->ir_savebp->b_data, bp->b_data,
|
||||
bp->b_bcount);
|
||||
|
Loading…
x
Reference in New Issue
Block a user