Whamcloud - gitweb
LU-8509 llite: drop_caches hangs in cl_inode_fini() 45/22745/4
authorAndrew Perepechko <andrew.perepechko@seagate.com>
Mon, 26 Sep 2016 20:42:41 +0000 (23:42 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 5 Oct 2016 03:51:29 +0000 (03:51 +0000)
commitc594026329e6a78a6c9f3188514211647b3040d8
tree3795c8b378bc421b935f60aae0afda707ff175de
parentacf46c8846d6c3893a52f5caba1eabea67c1bdba
LU-8509 llite: drop_caches hangs in cl_inode_fini()

This patch releases cl_pages on error in ll_write_begin()
to avoid memory and object reference leaks. Also, it
reuses per-cpu lu_env in ll_invalidatepage() in the same
way as done in ll_releasepage().

Change-Id: I11a658941aff4dacd3cc83685ae3df67f28093a2
Signed-off-by: Andrew Perepechko <andrew.perepechko@seagate.com>
Seagate-bug-id: MRP-3504
Reviewed-on: http://review.whamcloud.com/22745
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/rw26.c
lustre/tests/sanity.sh