- Acquire Giant in AIO's iodone routine. VFS will no longer do it for us

soon.

Sponsored by:	Isilon Systems, Inc.
This commit is contained in:
Jeff Roberson 2005-04-30 11:27:31 +00:00
parent 4e0ed69694
commit a230c79b9e

View File

@ -2149,6 +2149,7 @@ aio_physwakeup(struct buf *bp)
struct kaioinfo *ki;
struct aio_liojob *lj;
mtx_lock(&Giant);
wakeup(bp);
aiocbe = (struct aiocblist *)bp->b_caller1;
@ -2205,6 +2206,7 @@ aio_physwakeup(struct buf *bp)
aiocbe->timeouthandle =
timeout(process_signal, aiocbe, 0);
}
mtx_unlock(&Giant);
}
/* syscall - wait for the next completion of an aio request */