ceph: propagate layout error on osd request creation
authorSage Weil <sage@inktank.com>
Tue, 25 Sep 2012 04:01:02 +0000 (21:01 -0700)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 22:20:00 +0000 (17:20 -0500)
commit6816282dab3a72efe8c0d182c1bc2960d87f4322
treec36cea753185ad22b073d41a1e5e5dbe56a928a1
parentd63b77f4c552cc3a20506871046ab0fcbc332609
ceph: propagate layout error on osd request creation

If we are creating an osd request and get an invalid layout, return
an EINVAL to the caller.  We switch up the return to have an error
code instead of NULL implying -ENOMEM.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
fs/ceph/addr.c
fs/ceph/file.c
net/ceph/osd_client.c