Skip to content

Commit cce7708

Browse files
Pavel Machektorvalds
authored andcommitted
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>
1 parent bcd78e4 commit cce7708

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎fs/sync.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ asmlinkage long sys_fdatasync(unsigned int fd)
139139
* before performing the write.
140140
*
141141
* 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.
143144
*
144145
* SYNC_FILE_RANGE_WAIT_AFTER: wait upon writeout of all pages in the range
145146
* after performing the write.

0 commit comments

Comments
 (0)