staging/lustre: update timestamps after buiding rpc
authorNiu Yawei <yawei.niu@intel.com>
Thu, 26 Mar 2015 01:53:25 +0000 (21:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 10:11:44 +0000 (11:11 +0100)
commit3ce08cd7a281e11d83ac3f92832522cf4a2f549c
tree4db91655b27b2e33e26fd5ee50ea06a50622278c
parenta915ffda199013a8ee2dd6a8a23b89ea45879ed3
staging/lustre: update timestamps after buiding rpc

The mtime/atime/ctime in the write RPC has to be updated after
the RPC is built (where xid is generated), otherwise, it could
race with the setattr and updating wrong timestamps on OST side.

Seems this regression was introduced when landing clio code.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-on: http://review.whamcloud.com/13261
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5951
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/osc/osc_request.c