Whamcloud - gitweb
LU-3680 ptlrpc: Fix assertion failure of null_alloc_rs()
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:07:26 +0000 (23:07 -0500)
commit89cc68b900b7095dfa50bb20d8523a9109347e9d
tree6b328a182314b60ad7bea2f45242fc5818d783e0
parent9e8b42c726761781bb25552523fa50cdbdf15833
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