aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHenri Doreau <[email protected]>2016-11-10 12:30:31 -0500
committerGreg Kroah-Hartman <[email protected]>2016-11-14 16:16:57 +0100
commit0ffaa9c8eb2faab0cb2dbbe46a83ec5f96df0310 (patch)
tree4f621177649d7a7daab95a3c76ba5709010b8d61 /tools/perf/scripts/python/bin
parentb73d803b656e58a0bba69eff9cedd6f4e52aaba1 (diff)
staging: lustre: hsm: Use file lease to implement migration
Implement non-blocking migration based on exclusive open instead of group lock. Implemented exclusive close operation to atomically put a lease, swap two layouts and close a file. This allows race-free migrations. Make the caller responsible for retrying on failure (EBUSY, EAGAIN) in non-blocking mode. In blocking mode, allow applications to trigger layout swaps using a grouplock they already own, to prevent race conditions between the actual data copy and the layout swap. Updated lfs accordingly. File leases are also taken in blocking mode, so that lfs migrate can issue a warning if an application attempts to open a file that is being migrated and gets blocked. Timestamps (atime/mtime) are set from userland, after the layout swap is performed, to prevent conflicts with the grouplock. lli_trunc_sem is taken/released in the vvp_io layer, under the DLM lock. This re-ordering fixes the original issue between truncate and migrate. Signed-off-by: Henri Doreau <[email protected]> Signed-off-by: Jinshan Xiong <[email protected]> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4840 Reviewed-on: http://review.whamcloud.com/10013 Reviewed-by: John L. Hammond <[email protected]> Reviewed-by: frank zago <[email protected]> Reviewed-by: Oleg Drokin <[email protected]> Signed-off-by: James Simmons <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions