Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2014 10:50:20 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r260476 - stable/10/sys/cam/ctl
Message-ID:  <201401091050.s09AoKEw084401@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Jan  9 10:50:20 2014
New Revision: 260476
URL: http://svnweb.freebsd.org/changeset/base/260476

Log:
  MFC r256995:
  Remove 128KB bzero() call done for every block I/O data buffer.

Modified:
  stable/10/sys/cam/ctl/ctl_backend_block.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cam/ctl/ctl_backend_block.c
==============================================================================
--- stable/10/sys/cam/ctl/ctl_backend_block.c	Thu Jan  9 10:49:14 2014	(r260475)
+++ stable/10/sys/cam/ctl/ctl_backend_block.c	Thu Jan  9 10:50:20 2014	(r260476)
@@ -1607,18 +1607,6 @@ ctl_be_block_open(struct ctl_be_block_so
 }
 
 static int
-ctl_be_block_mem_ctor(void *mem, int size, void *arg, int flags)
-{
-	return (0);
-}
-
-static void
-ctl_be_block_mem_dtor(void *mem, int size, void *arg)
-{
-	bzero(mem, size);
-}
-
-static int
 ctl_be_block_create(struct ctl_be_block_softc *softc, struct ctl_lun_req *req)
 {
 	struct ctl_be_block_lun *be_lun;
@@ -1646,8 +1634,7 @@ ctl_be_block_create(struct ctl_be_block_
 	mtx_init(&be_lun->lock, be_lun->lunname, NULL, MTX_DEF);
 
 	be_lun->lun_zone = uma_zcreate(be_lun->lunname, MAXPHYS, 
-	    ctl_be_block_mem_ctor, ctl_be_block_mem_dtor, NULL, NULL,
-	    /*align*/ 0, /*flags*/0);
+	    NULL, NULL, NULL, NULL, /*align*/ 0, /*flags*/0);
 
 	if (be_lun->lun_zone == NULL) {
 		snprintf(req->error_str, sizeof(req->error_str),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401091050.s09AoKEw084401>