]> git.baikalelectronics.ru Git - kernel.git/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)
commit9555cbcef64bf3cad98426ab9cc0fb5ee044f3c5
tree4f02c6f7a5c1033b4a81363e6e996d6237bda8e1
parent4d1c5dc3e7c3557ee936ce3c71336d71a30233e8
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