From owner-svn-src-all@freebsd.org Thu Jan 19 23:44:07 2017 Return-Path: Delivered-To: svn-src-all@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 18353CB8E85; Thu, 19 Jan 2017 23:44:07 +0000 (UTC) (envelope-from rpokala@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (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 D98D31D4C; Thu, 19 Jan 2017 23:44:06 +0000 (UTC) (envelope-from rpokala@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0JNi5jk003806; Thu, 19 Jan 2017 23:44:05 GMT (envelope-from rpokala@FreeBSD.org) Received: (from rpokala@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0JNi5qQ003805; Thu, 19 Jan 2017 23:44:05 GMT (envelope-from rpokala@FreeBSD.org) Message-Id: <201701192344.v0JNi5qQ003805@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rpokala set sender to rpokala@FreeBSD.org using -f From: Ravi Pokala Date: Thu, 19 Jan 2017 23:44:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r312442 - stable/10/sys/kern X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2017 23:44:07 -0000 Author: rpokala Date: Thu Jan 19 23:44:05 2017 New Revision: 312442 URL: https://svnweb.freebsd.org/changeset/base/312442 Log: MFC r311963: Remove writability requirement for single-mbuf, contiguous- range m_pulldown() m_pulldown() only needs to determine if a mbuf is writable if it is going to copy data into the data region of an existing mbuf. It does this to create a contiguous data region in a single mbuf from multiple mbufs in the chain. If the requested memory region is already contiguous and nothing needs to change, the mbuf does not need to be writeable. Modified: stable/10/sys/kern/uipc_mbuf2.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/uipc_mbuf2.c ============================================================================== --- stable/10/sys/kern/uipc_mbuf2.c Thu Jan 19 23:42:51 2017 (r312441) +++ stable/10/sys/kern/uipc_mbuf2.c Thu Jan 19 23:44:05 2017 (r312442) @@ -161,7 +161,7 @@ m_pulldown(struct mbuf *m, int off, int * the target data is on . * if we got enough data on the mbuf "n", we're done. */ - if ((off == 0 || offp) && len <= n->m_len - off && writable) + if ((off == 0 || offp) && len <= n->m_len - off) goto ok; /*