Whamcloud - gitweb
LU-5319 ptlrpc: embed highest XID in each request 93/14793/6
authorGregoire Pichon <gregoire.pichon@bull.net>
Wed, 13 May 2015 14:42:44 +0000 (16:42 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 29 Jun 2015 22:06:17 +0000 (22:06 +0000)
commitbf3e7f67cb33f3b4e0590ef8af3843ac53d0a4e8
tree435fe6b72c92fc514623eece56aaca673dd11534
parent919b85d796f845ec3e6633702dda1639a3d86176
LU-5319 ptlrpc: embed highest XID in each request

Atomically assign XIDs and put request and sending list so
we can learn the lowest unreplied XID at any point.

This allows to embed in every resquests the highest XID for
which a reply has been received and does not have an unreplied
lower-numbered XID.

This will be used by the MDT target to release in-memory
reply data corresponding to XIDs of reply received by the client.

Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Signed-off-by: Gregoire Pichon <gregoire.pichon@bull.net>
Change-Id: Ic88fb6db704d8e9a78a34fe16f64abb2cdffc4c4
Reviewed-on: http://review.whamcloud.com/14793
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_export.h
lustre/ptlrpc/client.c
lustre/target/tgt_handler.c