floppy: use atomic type for usage_count
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 15 Jun 2010 11:21:11 +0000 (13:21 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:15:36 +0000 (18:15 +0200)
commit575cfc673e0f2e6f71ccc01bb77d7ec811054048
tree696bdbfec6870511493962c7786506e5c61e2948
parent41a55b4de396f675485a3f3cb3e1b117316e9ce9
floppy: use atomic type for usage_count

The usage_count was being protected by a lock which was only there to
create an atomic counter.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/block/floppy.c