Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

SYNC_FILE_RANGE_WRITE may and will block. Document that.

[akpm@linux-foundation.org: fix comment text]
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Pavel Machek and committed by
Linus Torvalds
cce77081 bcd78e49

+2 -1
+2 -1
fs/sync.c
··· 139 139 * before performing the write. 140 140 * 141 141 * SYNC_FILE_RANGE_WRITE: initiate writeout of all those dirty pages in the 142 - * range which are not presently under writeback. 142 + * range which are not presently under writeback. Note that this may block for 143 + * significant periods due to exhaustion of disk request structures. 143 144 * 144 145 * SYNC_FILE_RANGE_WAIT_AFTER: wait upon writeout of all pages in the range 145 146 * after performing the write.