Whamcloud - gitweb
LU-2714 hsm: limit MDT-side allocations for HSM RPCs
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 21 Feb 2013 22:43:33 +0000 (16:43 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 7 Mar 2013 18:37:48 +0000 (13:37 -0500)
commit22b4247fe2d724a192661a911cd295c1bb566f97
tree328d08f5e79d4e414798119b17897b909a0736f5
parent0be1c87fe2d4ffddaca9e568cc137518b7368b2d
LU-2714 hsm: limit MDT-side allocations for HSM RPCs

Limit the amount of memory an MDT will allocate for a single HSM RPC
to 1 MB and add some sanity checking to the HSM handlers that use
variable length buffers.  In hur_len() compute the size of an HSM
request in a portable way.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ie03b85a8524cb377bf43446be429cc60c2fe39a7
Reviewed-on: http://review.whamcloud.com/5507
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
lustre/include/lustre/lustre_user.h
lustre/mdt/mdt_hsm.c
lustre/utils/lfs.c