]> bbs.cooldavid.org Git - net-next-2.6.git/commit - mm/backing-dev.c
writeback: fix bad _bh spinlock nesting
authorJens Axboe <jaxboe@fusionio.com>
Wed, 4 Aug 2010 11:34:31 +0000 (13:34 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:53:57 +0000 (18:53 +0200)
commit6bf05d03ea8d00bb53e0642f94a5a6815be2edb6
treed36ea43efb9306fa4ff2fdb8f579fb661cad61e8
parente7f52dfb4f378ea1bbfd4476f4e8ba42f5fb332c
writeback: fix bad _bh spinlock nesting

Fix a bug where a lock is _bh nested within another _bh lock,
but forgets to use the _bh variant for unlock.

Further more, it's not necessary to test _bh locks, the inner lock
can just use spin_lock(). So fix up the bug by making that change.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
mm/backing-dev.c