ceph: avoid resending queued message to monitor
authorSage Weil <sage@newdream.net>
Fri, 21 May 2010 19:31:49 +0000 (12:31 -0700)
committerSage Weil <sage@newdream.net>
Fri, 21 May 2010 22:01:22 +0000 (15:01 -0700)
commit970690012c572fc3b7be532080564b730f6a9c02
tree07fcab8e6e374e175aa964a33b5d8a2c36dc76a8
parent9e32789f63fc5ad91c8b10f68ec23a86856d5af5
ceph: avoid resending queued message to monitor

The auth_reply handler will (re)send any pending requests.  For the
initial mon authenticate phase, that's correct, but when a auth ticket
renewal races with an in-flight request, we may resend a request message
that is already in flight.  Avoid this by revoking the message before
sending it.

We should also avoid resending requests at all during ticket renewal; that
will come soon.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/mon_client.c