]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Improve queue_is_locked()
authorJens Axboe <jens.axboe@oracle.com>
Tue, 29 Apr 2008 19:31:27 +0000 (21:31 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 19:36:54 +0000 (12:36 -0700)
commit7663c1e2792a9662b23dec6e19bfcd3d55360b8f
treeff5f91fa9ac3603f242b8ae985d9cca611e3d56b
parent6203554207728f43cfb9fd48585cd6500da73d42
Improve queue_is_locked()

spin_is_locked() doesn't work on UP without spinlock debugging. Make it
safer and just return 1 on UP, so we don't get false positives. The plan
is to kill this debug function during the -rc cycle.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/blkdev.h