Whamcloud - gitweb
LU-9305 osd-zfs: arc_buf could be non-pagesize aligned 95/26895/8
authorJinshan Xiong <jinshan.xiong@intel.com>
Mon, 1 May 2017 04:10:51 +0000 (21:10 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 16 May 2017 05:45:30 +0000 (05:45 +0000)
commit3800d05641158608e5a139336c00a781fa9fb8c7
treec60e831b6d624dd44776b8e7f755bb865f9be664
parentf240769f40bf9e623fe7e9a8b061c7cd332a7c46
LU-9305 osd-zfs: arc_buf could be non-pagesize aligned

ZFS only guarantees PAGE_SIZE alignment to arc_buf_t only when
the block size is not less than (PAGE_SIZE << 2).

The patch for ZFS https://github.com/zfsonlinux/zfs/pull/6084 fixes
the alignment problem, buf Lustre still needs a fix to handle
the problem in case it's running old ZFS release.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I6fd17d7b20499ec0406a3e10cebf6882b92a730f
Reviewed-on: https://review.whamcloud.com/26895
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
config/lustre-build-zfs.m4
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_io.c
lustre/tests/sanity.sh