]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit58db63d086790eec2ed433f9d8c4962239809cf8
treee8fa4238167f92bb0dbded4d2df1498d8c4e9404
parentb5c84bf6f6fa3a7dfdcb556023a62953574b60ee
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