From nobody@FreeBSD.org  Thu Jun  4 00:51:59 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AA00A1065672
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Jun 2009 00:51:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 982248FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Jun 2009 00:51:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n540pxEB093435
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 4 Jun 2009 00:51:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n540pxEX093432;
	Thu, 4 Jun 2009 00:51:59 GMT
	(envelope-from nobody)
Message-Id: <200906040051.n540pxEX093432@www.freebsd.org>
Date: Thu, 4 Jun 2009 00:51:59 GMT
From: Jordan Newman <jn-freebsdbugs@isprime.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sendfile() and SF_NODISKIO blocks on NFS files
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         135237
>Category:       kern
>Synopsis:       [nfs] sendfile(2) and SF_NODISKIO blocks on NFS files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 04 01:00:06 UTC 2009
>Closed-Date:    
>Last-Modified:  Thu Jun 04 01:55:42 UTC 2009
>Originator:     Jordan Newman
>Release:        7.2
>Organization:
ISPrime Inc.
>Environment:
FreeBSD XXX 7.2-RELEASE FreeBSD 7.2-RELEASE #8: Wed May 20 01:49:25 EDT 2009     root@XXX:/usr/obj/usr/src/sys/1950-64BITRAID-SMP  amd64


>Description:
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.

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
