diff options
author | mav <mav@FreeBSD.org> | 2014-01-09 10:50:20 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-01-09 10:50:20 +0000 |
commit | 288680289630ecbdcea7b5bc516327ed59b52411 (patch) | |
tree | 265432cc355daf43b12b17528c1ba2c8b2e25b0d | |
parent | 2e2af5808bf8df11b7557a860e32f959e634e7a6 (diff) | |
download | FreeBSD-src-288680289630ecbdcea7b5bc516327ed59b52411.zip FreeBSD-src-288680289630ecbdcea7b5bc516327ed59b52411.tar.gz |
MFC r256995:
Remove 128KB bzero() call done for every block I/O data buffer.
-rw-r--r-- | sys/cam/ctl/ctl_backend_block.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/cam/ctl/ctl_backend_block.c b/sys/cam/ctl/ctl_backend_block.c index 18c5c28..4d13e33 100644 --- a/sys/cam/ctl/ctl_backend_block.c +++ b/sys/cam/ctl/ctl_backend_block.c @@ -1607,18 +1607,6 @@ ctl_be_block_open(struct ctl_be_block_softc *softc, } 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_softc *softc, struct ctl_lun_req *req) 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), |