Whamcloud - gitweb
LU-3587 changelogs: Correct KUC code max changelog msg size 70/8170/2
authorChristopher J. Morrone <morrone2@llnl.gov>
Tue, 20 Aug 2013 01:15:31 +0000 (18:15 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 17 Nov 2013 04:23:34 +0000 (04:23 +0000)
commit33c23fcb661eeffef7ecfcc2c833ff72555678c4
tree4679f10b3d918af31b16ce58d2b4bfed4dd882dd
parent9ca58c8d0a1eeab51ea5737f9cebb6c4b30c2068
LU-3587 changelogs: Correct KUC code max changelog msg size

The kernel to userspace communication routines (KUC) allocate
and limit the maximum cs_buf size to CR_MAXSIZE.  However this
fails to account for the fact that the buffer is assumed to begin
with a struct kuc_hdr.  To allocate and account for that space,
we introduce a new define, KUC_CHANGELOG_MSG_MAXSIZE.

Lustre-commit: b1bc221e1eb98314513eff07afc0b4477076c959
Lustre-change: http://review.whamcloud.com/7406

Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: jacques-Charles Lafoucriere <jacques-charles.lafoucriere@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Change-Id: I67068dc6e2d73df15dce7fe00957e4e204aa7e59
Reviewed-on: http://review.whamcloud.com/8170
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
libcfs/include/libcfs/libcfs_kernelcomm.h
lustre/mdc/mdc_request.c
lustre/utils/liblustreapi.c