rbd: turn off interrupts for open/remove locking
authorAlex Elder <elder@inktank.com>
Tue, 5 Feb 2013 19:23:12 +0000 (13:23 -0600)
committerSage Weil <sage@inktank.com>
Thu, 14 Feb 2013 02:29:11 +0000 (18:29 -0800)
commita14ea269dd6b5e48a2941ba73b202cd7cd5d716d
treec97e4fcb5c80c03f769cf7e2408d2c88e88d6d4b
parent9cbb1d7268afa997a7f96d779470cc57d28e1a13
rbd: turn off interrupts for open/remove locking

This commit:
    bc7a62ee5 rbd: prevent open for image being removed
added checking for removing rbd before allowing an open, and used
the same request spinlock for protecting that and updating the open
count as is used for the request queue.

However it used the non-irq protected version of the spinlocks.
Fix that.

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