]> git.neil.brown.name Git - history.git/commit
[PATCH] Don't hold BKL across sync_blockdev() in blkdev_put()
authorAndrew Morton <akpm@digeo.com>
Tue, 26 Nov 2002 01:57:27 +0000 (17:57 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 26 Nov 2002 01:57:27 +0000 (17:57 -0800)
commit6e1f23ff2931089a8abc06c0caf75b0592149a48
tree827b502a2e7cd21542ab6eb14acf55f426f0ba35
parentcfe7c13e4e5cd42b9aefd5331704ba2ac7ab2450
[PATCH] Don't hold BKL across sync_blockdev() in blkdev_put()

Running sync_blockdev() inside lock_kernel causes long scheduling
stalls under some conditions because the lock_kernel() disables
preemption.

We don't need the BKL across sync_blockdev(), so move it down a bit.

This is a minimal fix - we probably don't need BKL for much at all in
there.
fs/block_dev.c