[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.
Showing
Please register or sign in to comment