From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sukadev Bhattiprolu Subject: [RFC][PATCH 0/3][cr][v2]: Checkpoint/restart file leases Date: Tue, 25 May 2010 18:07:40 -0700 Message-ID: <1274836063-13271-1-git-send-email-sukadev@linux.vnet.ibm.com> Cc: serue@us.ibm.com, Matt Helsley , matthew@wil.cx, , Containers To: Oren Laadan Return-path: Received: from e33.co.us.ibm.com ([32.97.110.151]:38469 "EHLO e33.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932398Ab0EZBAu (ORCPT ); Tue, 25 May 2010 21:00:50 -0400 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e33.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id o4Q0ud7O029584 for ; Tue, 25 May 2010 18:56:39 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o4Q10b4j102426 for ; Tue, 25 May 2010 19:00:40 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o4Q10a1x029211 for ; Tue, 25 May 2010 19:00:37 -0600 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Checkpoint/restart file leases. See comments in patches 2 and 3 for details. These patches apply on top of the following patchset which implements checkpoint/restart of posix locks and file-owners: https://lists.linux-foundation.org/pipermail/containers/2010-May/024613.html Changelog[v2]: - Added patch 3/3 to ensure that lease-holder gets only one SIGIO and that the total time the lease-breaker waits is limited to lease_break_time (these two were TODOs in [v1]). Signed-off-by: Sukadev Bhattiprolu Sukadev Bhattiprolu (3): Define do_setlease() Checkpoint/restart file leases fileleases: C/R of an in-progress lease. fs/checkpoint.c | 30 ++++++++++- fs/locks.c | 111 +++++++++++++++++++++++++++++++++++----- include/linux/checkpoint_hdr.h | 3 + include/linux/fs.h | 4 ++ 4 files changed, 132 insertions(+), 16 deletions(-)