From owner-freebsd-bugs@FreeBSD.ORG Thu Jun 4 01:00:07 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B238106564A for ; Thu, 4 Jun 2009 01:00:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 156B38FC12 for ; Thu, 4 Jun 2009 01:00:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n54106KC042419 for ; Thu, 4 Jun 2009 01:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n541064l042418; Thu, 4 Jun 2009 01:00:06 GMT (envelope-from gnats) Resent-Date: Thu, 4 Jun 2009 01:00:06 GMT Resent-Message-Id: <200906040100.n541064l042418@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jordan Newman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA00A1065672 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/135237: sendfile() and SF_NODISKIO blocks on NFS files X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 01:00:08 -0000 >Number: 135237 >Category: kern >Synopsis: sendfile() 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: >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: