Whamcloud - gitweb
LU-3680 ptlrpc: Fix assertion failure of null_alloc_rs() 00/8200/6
authorPatrick Farrell <paf@cray.com>
Fri, 22 Nov 2013 16:47:54 +0000 (10:47 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 19 Jan 2014 04:05:09 +0000 (04:05 +0000)
commit5aa4ccc5f251227b79c26408569f6371314d2072
tree17fbb4c2a8ba0a4fbbba0058b94463ad92f476e7
parentbe41e2ce0d71a707da703e6f8e82d397be839d23
LU-3680 ptlrpc: Fix assertion failure of null_alloc_rs()

lustre_get_emerg_rs() set the size of the reply buffer to zero
by mistake, which will cause LBUG in null_alloc_rs() when memory
pressure is high. This patch fix this problem and adds a size
check to avoid the problem of insufficient buffer size.

Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: Patrick Farrell <paf@cray.com>
Change-Id: I9fbd4f14e8e1263de2af564c4f2e420f5f2b43bc
Reviewed-on: http://review.whamcloud.com/8200
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/sec.c