]> asedeno.scripts.mit.edu Git - linux.git/commit
ceph: re-request max_size if cap auth changes
authorSage Weil <sage@newdream.net>
Sun, 7 Nov 2010 17:39:00 +0000 (09:39 -0800)
committerSage Weil <sage@newdream.net>
Sun, 7 Nov 2010 17:39:23 +0000 (09:39 -0800)
commitfeb4cc9bb433bf1491ac5ffbba133f3258dacf06
tree6339043d3fd867683459d9dc33f146b2f7e37d75
parent912a9b0319a8eb9e0834b19a25e01013ab2d6a9f
ceph: re-request max_size if cap auth changes

If the auth cap migrates to another MDS, clear requested_max_size so that
we resend any pending max_size increase requests.  This fixes potential
hangs on writes that extend a file and race with an cap migration between
MDSs.

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