rbd: ignore zero-length requests
authorAlex Elder <elder@inktank.com>
Thu, 21 Feb 2013 03:59:33 +0000 (21:59 -0600)
committerAlex Elder <elder@inktank.com>
Mon, 25 Feb 2013 21:36:36 +0000 (15:36 -0600)
commit4dda41d3d76747414586a4bad5615b550e0986b1
tree9a2f3cc8d6071fa2d242de8e6a36231e1ba6a902
parent92a49fb0f79f3300e6e50ddf56238e70678e4202
rbd: ignore zero-length requests

The old request code simply ignored zero-length requests.  We should
still operate that same way to avoid any changes in behavior.  We
can implement handling for special zero-length requests separately
(see http://tracker.ceph.com/issues/4236).

Add some assertions based on this new constraint.

This resolves:
    http://tracker.ceph.com/issues/4237

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c