From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sukadev Bhattiprolu Subject: [PATCH 00/17][cr][v4]: C/R file owner, locks, leases Date: Mon, 16 Aug 2010 12:43:04 -0700 Message-ID: <1281987801-1293-1-git-send-email-sukadev@linux.vnet.ibm.com> Cc: Serge Hallyn , Matt Helsley , Dan Smith , John Stultz , Matthew Wilcox , Jamie Lokier , Steven Whitehouse , , Containers To: Oren Laadan Return-path: Received: from e31.co.us.ibm.com ([32.97.110.149]:48369 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756248Ab0HPThw (ORCPT ); Mon, 16 Aug 2010 15:37:52 -0400 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e31.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id o7GJQ8JN009609 for ; Mon, 16 Aug 2010 13:26:08 -0600 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o7GJbXDY101784 for ; Mon, 16 Aug 2010 13:37:39 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o7GJbVN4014699 for ; Mon, 16 Aug 2010 13:37:32 -0600 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Checkpoint/restart file owner, file-locks and file-lease information. See Documentation/checkpoint/file-locks added by patch 17/17 for design and file-system consistency requirements. Changelog[v4]: - [Oren Laadan, Steven Whitehouse]: Document design and fs consistency requirements. - [Oren Laadan]: For consistency with other such objects, replace the "marker lock" checkpoint with a checkpoint of a count of the file-locks before the first file-lock of each file. Changelog[v3]: - Broke-up C/R of file-leases patches into smaller patches and included them in this set. - Addressed comments from Jamie Lokier, Oren Laadan with help from John Stultz on the computation of time offsets. Sukadev Bhattiprolu (17): Add uid, euid params to f_modown() Add uid, euid params to __f_setown() Checkpoint file-owner information Restore file_owner info Move file_lock macros into linux/fs.h Checkpoint file-locks Define flock_set() Define flock64_set() Restore file-locks Initialize ->fl_break_time to 0 Add ->fl_type_prev field. Add ->fl_break_notified field. Add jiffies_begin field to ckpt_ctx Checkpoint file-leases Define do_setlease() Restore file-leases Document design of C/R of file-locks and leases Documentation/checkpoint/file-locks | 126 ++++++++++ drivers/char/tty_io.c | 3 +- drivers/net/tun.c | 3 +- fs/checkpoint.c | 468 ++++++++++++++++++++++++++++++++--- fs/fcntl.c | 19 +- fs/locks.c | 207 ++++++++++++---- fs/notify/dnotify/dnotify.c | 3 +- include/linux/checkpoint_hdr.h | 25 ++ include/linux/checkpoint_types.h | 1 + include/linux/fs.h | 17 ++- kernel/checkpoint/sys.c | 1 + 11 files changed, 779 insertions(+), 94 deletions(-) create mode 100644 Documentation/checkpoint/file-locks NOTE: Most of the "added lines" in fs/locks.c are comments about C/R :-)