The reverse order of request_out_callback() and reply_in_callback()
puts the RPC into UNREGISTERING state, which is waiting for RPC &
bulk md unlink, whereas only RPC md unlink has been called so far.
If bulk is lost, even expired_set does not check for UNREGISTERING
The same for write if server returns an error.
This phase is ambiguous, split to UNREG_RPC and UNREG_BULK.
Signed-off-by: Vitaly Fertman <email@example.com>
Seagate-bug-id: MRP-2953, MRP-3206
Reviewed-by: Andriy Skulysh <firstname.lastname@example.org>
Reviewed-by: Alexey Leonidovich Lyashkov <email@example.com>
Tested-by: Elena V. Gryaznova <firstname.lastname@example.org>
Reviewed-on: http://review.whamcloud.com/19953Reviewed-by: Chris Horn <email@example.com>
Reviewed-by: Ann Koehler <firstname.lastname@example.org>
Reviewed-by: Andreas Dilger <email@example.com>
Signed-off-by: Oleg Drokin <firstname.lastname@example.org>
Signed-off-by: Greg Kroah-Hartman <email@example.com>