Whamcloud - gitweb
LU-7414 target: do not share update and rdbuf 29/17129/3
authorDi Wang <di.wang@intel.com>
Tue, 10 Nov 2015 10:12:00 +0000 (02:12 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 17 Nov 2015 15:32:14 +0000 (15:32 +0000)
commitf0ff8fa3d8c6612b11004f01068ab590b11fc290
tree752cd2afb6a1af9e2475202d804ce75b93f034ec
parent77f345abbe6228f284ec1228efbe1094275ee9e5
LU-7414 target: do not share update and rdbuf

Redefine lu_rdbuf structure to simplify the rdbuf
allocation in out_read().

And also move tti_u.rdbuf out of tgt_thread_info
union, otherwise rdbuf and update will share
the same memory and cause corruption, see out_read().

Signed-off-by: Di Wang <di.wang@intel.com>
Change-Id: Idb0f5af1b00fd5fd15ebc8742aa60d9a43df0a8a
Reviewed-on: http://review.whamcloud.com/17129
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/include/lu_object.h
lustre/target/out_handler.c
lustre/target/tgt_handler.c
lustre/target/tgt_internal.h