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:
Konstantin Belousov 2024-11-12 08:24:03 +02:00
parent c1d93f81e4
commit d0b41249bf

View File

@ -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();