ceph: make write_begin wait propagate ERESTARTSYS
authorSage Weil <sage@newdream.net>
Fri, 19 Mar 2010 20:27:53 +0000 (13:27 -0700)
committerSage Weil <sage@newdream.net>
Tue, 23 Mar 2010 14:47:03 +0000 (07:47 -0700)
commit8f883c24de33ba929c95e018ac0ba66e4f46734b
tree82a9a50b08826612f0613283c7b3f8f6aea264e7
parentec4318bcb4c59d8b8bf7037c9f444a9887ccb265
ceph: make write_begin wait propagate ERESTARTSYS

Currently, if the wait_event_interruptible is interrupted, we
return EAGAIN unconditionally and loop, such that we aren't, in
fact, interruptible.  So, propagate ERESTARTSYS if we get it.

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