mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
- 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:
parent
4e0ed69694
commit
a230c79b9e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145701
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user