]> git.baikalelectronics.ru Git - kernel.git/commit
fs: dcache avoid starvation in dcache multi-step operations
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:49:39 +0000 (17:49 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:23 +0000 (17:50 +1100)
commitca4b506e9518d9121af60c8dce137681f6af5308
treee8fa4238167f92bb0dbded4d2df1498d8c4e9404
parentd728fd88c24a9d0a322610ccc519bba476fa9fdc
fs: dcache avoid starvation in dcache multi-step operations

Long lived dcache "multi-step" operations which retry on rename seq can
be starved with a lot of rename activity. If they fail after the 1st pass,
take the rename_lock for writing to avoid further starvation.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
fs/dcache.c