]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd regression since delayed fput()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 20 Oct 2013 12:44:39 +0000 (08:44 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 20 Oct 2013 12:44:39 +0000 (08:44 -0400)
commit511e0568e5e742059c3ac19d5c2561db153d1814
tree0ca6b0cc8afcc0145d5eeaed90469470e60cf173
parentc295ad57cd3a12ccd96d2b0c7803f72dc86a1e7e
nfsd regression since delayed fput()

Background: nfsd v[23] had throughput regression since delayed fput
went in; every read or write ends up doing fput() and we get a pair
of extra context switches out of that (plus quite a bit of work
in queue_work itselfi, apparently).  Use of schedule_delayed_work()
gives it a chance to accumulate a bit before we do __fput() on all
of them.  I'm not too happy about that solution, but... on at least
one real-world setup it reverts about 10% throughput loss we got from
switch to delayed fput.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/file_table.c