ceph: fix uid/gid on resent mds requests
authorSage Weil <sage@newdream.net>
Mon, 8 Nov 2010 15:28:52 +0000 (07:28 -0800)
committerSage Weil <sage@newdream.net>
Mon, 8 Nov 2010 15:29:05 +0000 (07:29 -0800)
commitcb4276cca4695670916a82e359f2e3776f0a9138
tree09695ba622771c933e045bafe63c1da1139266f3
parentcd045cb42a266882ac24bc21a3a8d03683c72954
ceph: fix uid/gid on resent mds requests

MDS requests can be rebuilt and resent in non-process context, but were
filling in uid/gid from current_fsuid/gid.  Put that information in the
request struct on request setup.

This fixes incorrect (and root) uid/gid getting set for requests that
are forwarded between MDSs, usually due to metadata migrations.

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