rbd: eliminate sparse warnings
authorAlex Elder <elder@inktank.com>
Tue, 19 Feb 2013 18:25:56 +0000 (12:25 -0600)
committerAlex Elder <elder@inktank.com>
Mon, 25 Feb 2013 21:37:08 +0000 (15:37 -0600)
commitcc344fa1b541b116190291d366583585f03d0fe6
treebabe0e154582d2542df314fee9c662ba43fe9553
parentc9ffc77adebf9dfe3026ede6c8b3c61586b485b7
rbd: eliminate sparse warnings

Fengguang Wu reminded me that there were outstanding sparse reports
in the ceph and rbd code.  This patch fixes these problems in rbd
that lead to those reports:
    - Convert functions that are never referenced externally to have
      static scope.
    - Add a lockdep annotation to rbd_request_fn(), because it
      releases a lock before acquiring it again.

This partially resolves:
    http://tracker.ceph.com/issues/4184

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