Whamcloud - gitweb
LU-2275 mdc: Don't leak requests with "strange" dispositions
authorOleg Drokin <green@whamcloud.com>
Mon, 5 Nov 2012 05:17:16 +0000 (00:17 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 29 Nov 2012 17:51:29 +0000 (12:51 -0500)
commitef75b59800d643e666d7c44c20287a8002e0a166
tree8abffdff127803c2340624bb61a79e941fe11a3f
parent668f069172406c417a0d0bb1ac201d2d6aba4239
LU-2275 mdc: Don't leak requests with "strange" dispositions

Make sure that a request with no transno will get its rq_replay reset,
also ensure that on error path from ll_file_open we drop reference to
request occupied by open if needed.

Change-Id: If4d59274d2574698567970821b94ef1c5c35385b
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/4458
Reviewed-by: Peng Tao <bergwolf@gmail.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
lustre/include/obd_support.h
lustre/llite/file.c
lustre/mdc/mdc_locks.c
lustre/mdt/mdt_open.c
lustre/tests/sanity.sh