]> Pileus Git - ~andy/linux/commit
ceph: clean up service ticket decoding
authorSage Weil <sage@newdream.net>
Mon, 15 Mar 2010 23:12:25 +0000 (16:12 -0700)
committerSage Weil <sage@newdream.net>
Tue, 23 Mar 2010 14:46:47 +0000 (07:46 -0700)
commit0a990e7093566ceb07e38951e1a01686923d4f09
tree4f02c6f7a5c1033b4a81363e6e996d6237bda8e1
parent5b3dbb44ab40660a080d03585bd35f45b2890c49
ceph: clean up service ticket decoding

Previously we would decode state directly into our current ticket_handler.
This is problematic if for some reason we fail to decode, because we end
up with half new state and half old state.

We are probably already in bad shape if we get an update we can't decode,
but we may as well be tidy anyway.  Decode into new_* temporaries and
update the ticket_handler only on success.

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