From: Alex Elder Date: Wed, 16 May 2012 20:16:38 +0000 (-0500) Subject: ceph: don't set WRITE_PENDING too early X-Git-Tag: v3.5-rc1~36^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e10c758e4031a801ea4d2f8fb39bf14c2658d74b;p=pandora-kernel.git ceph: don't set WRITE_PENDING too early prepare_write_connect() prepares a connect message, then sets WRITE_PENDING on the connection. Then *after* this, it calls prepare_connect_authorizer(), which updates the content of the connection buffer already queued for sending. It's also possible it will result in prepare_write_connect() returning -EAGAIN despite the WRITE_PENDING big getting set. Fix this by preparing the connect authorizer first, setting the WRITE_PENDING bit only after that is done. Partially addresses http://tracker.newdream.net/issues/2424 Signed-off-by: Alex Elder Reviewed-by: Sage Weil --- Reading git-diff-tree failed