percpu-rwsem: use synchronize_sched_expedited
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 28 Nov 2012 03:59:52 +0000 (22:59 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 28 Nov 2012 15:33:50 +0000 (07:33 -0800)
commit4b05a1c74d1cfae37cf6ff293ee928350f031418
tree1b5c9507f5622fbf1affe4fc4e07ed0b60c3413e
parente23739b4ade80a3a7f87198f008f6c44a7cbc9fd
percpu-rwsem: use synchronize_sched_expedited

Use synchronize_sched_expedited() instead of synchronize_sched()
to improve mount speed.

This patch improves mount time from 0.500s to 0.013s for Jeff's
test-case.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reported-and-tested-by: Jeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/percpu-rwsem.h