Whamcloud - gitweb
LU-8199 ptlrpc: better lut_reply_bitmap handling 50/20450/3
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Wed, 25 May 2016 18:58:32 +0000 (14:58 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 11 Jul 2016 23:53:29 +0000 (23:53 +0000)
commit5f08d032972256928a7a9ede3b526963c884778e
tree1bf3bd5d1b950c51815871a7bfb4e2cc60bf5173
parent52d4d48ae9e76fa5ff514b98f62049b446ef0b66
LU-8199 ptlrpc: better lut_reply_bitmap handling

Use OBD_ALLOC_LARGE instead of OBD_ALLOC to allocate chunks because of
size.  Also ensure they are free'd correctly.
Better return checking of tgt_bitmap_chunk_alloc by callers.
Check lut_reply_bitmap[chunk] is non-null in tgt_clear_reply_slot (in
case tgt_bitmap_chunk_alloc did fail).
Don't leak lut_replay_bitmap chunks if tgt_init fails.

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: Ib222300a8c6d0032834d774cde9a9cb3830fb289
Reviewed-on: http://review.whamcloud.com/20450
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Grégoire Pichon <gregoire.pichon@bull.net>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/target/tgt_lastrcvd.c
lustre/target/tgt_main.c