From owner-freebsd-testing@freebsd.org Tue May 9 20:58:40 2017 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 32696D6607C for ; Tue, 9 May 2017 20:58:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0915C1AE3 for ; Tue, 9 May 2017 20:58:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v49Kwd3U039798 for ; Tue, 9 May 2017 20:58:39 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-testing@freebsd.org Subject: [Bug 217261] sys/aio/aio_test:aio_md_test fails semi-frequently with Jenkins with "aio_write failed: Operation not supported" Date: Tue, 09 May 2017 20:58:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ngie@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-testing@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2017 20:58:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217261 Ngie Cooper changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kib@FreeBSD.org --- Comment #4 from Ngie Cooper --- I'm pretty sure that this is happening due to r303154: - if (!enable_aio_unsafe) + safe =3D false; + if (fp->f_type =3D=3D DTYPE_VNODE) { + vp =3D fp->f_vnode; + if (vp->v_type =3D=3D VREG || vp->v_type =3D=3D VDIR) { + mp =3D fp->f_vnode->v_mount; + if (mp =3D=3D NULL || (mp->mnt_flag & MNT_LOCAL) != =3D 0) + safe =3D true; + } + } + if (!(safe || enable_aio_unsafe)) I'm not entirely sure that that commit accounted for these cases noted in aio(4) (in particular, the second paragraph): Asynchronous I/O operations on some file descriptor types may block an AIO daemon indefinitely resulting in process and/or system hangs. Operations on these file descriptor types are considered "unsafe" and disabled by default. They can be enabled by setting the vfs.aio.enable_unsafe sysctl node to a non-zero value. Asynchronous I/O operations on sockets, raw disk devices, and regular files on local filesystems do not block indefinitely and are always enabled. VBLK and VSOCK doesn't seem to be handled appropriately. VCHR seems trickie= r to handle, depending on the input device (pty's for instance could block). The second paragraph is ambiguous too -- are block devices ok, but not character devices, or vice versa, or are all forms ok? --=20 You are receiving this mail because: You are the assignee for the bug.=