Whamcloud - gitweb
LU-759 mdc: Clear rq_replay on error in mdc_enqueue()
authorLi Wei <liwei@whamcloud.com>
Fri, 30 Sep 2011 08:30:09 +0000 (16:30 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 18 Nov 2011 14:38:10 +0000 (09:38 -0500)
commitd97a613cdadb8432b6df67515adfb5e01746e30f
tree896aaed6fb8d26c207717d866758c9f6603ea220
parenta296e9433919a6d709ae7826ecc5310d9e2d1365
LU-759 mdc: Clear rq_replay on error in mdc_enqueue()

When mdc_enter_request() fails (e.g., due to signals) in mdc_enqueue(),
the request is freed without any care about its rq_replay field.  For
rq_replay requests, this results in assertion failures in
__ptlrpc_free_req().  This patch adds a call to mdc_clear_replay_flag()
to make sure __ptlrpc_free_req()'s assumption is respected.

Change-Id: I2185066a9f47b3d9563d9e1a8989754ef2e2dcb4
Signed-off-by: Li Wei <liwei@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1518
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdc/mdc_locks.c