Bug 135237 - [nfs] sendfile(2) and SF_NODISKIO blocks on NFS files
Summary: [nfs] sendfile(2) and SF_NODISKIO blocks on NFS files
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-04 02:00 UTC by Jordan Newman
Modified: 2019-07-20 06:38 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan Newman 2009-06-04 02:00:06 UTC
Calling sendfile() with the SF_NODISKIO flag, will still block if the descriptor points to a file that is on an NFS mount.  In this situation I feel accessing data over the network should be considered "disk io" and it should return EBUSY.

This seems to happen on every version of FreeBSD, so I do not believe it to be a regression in FreeBSD 7.2 or a new bug.

How-To-Repeat: any sendfile call such as:

  sendfile(fd,clientsock,offset,sendsize,&sf,&cnt,SF_NODISKIO);

will still block while the NFS lookup occurs.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:48 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped