mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 00:33:30 +00:00
bufwrite(): adjust the comment
The statement about 'do not deadlock there' is false, since this write might need other writes to finish, which cannot be started due to runningbufspace. PR: 282449 Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
c1d93f81e4
commit
d0b41249bf
@ -2375,11 +2375,9 @@ bufwrite(struct buf *bp)
|
||||
} else if (space > hirunningspace) {
|
||||
/*
|
||||
* Don't allow the async write to saturate the I/O
|
||||
* system. We will not deadlock here because
|
||||
* we are blocking waiting for I/O that is already in-progress
|
||||
* to complete. We do not block here if it is the update
|
||||
* or syncer daemon trying to clean up as that can lead
|
||||
* to deadlock.
|
||||
* system. We do not block here if it is the update
|
||||
* or syncer daemon trying to clean up as that can
|
||||
* lead to deadlock.
|
||||
*/
|
||||
if ((curthread->td_pflags & TDP_NORUNNINGBUF) == 0 && !vp_md)
|
||||
waitrunningbufspace();
|
||||
|
Loading…
Reference in New Issue
Block a user