From: Mark Fasheh Date: Thu, 6 Feb 2014 15:42:53 -0800 Subject: [Ocfs2-devel] [patch 09/11] ocfs2: llseek requires ocfs2 inode lock for the file in SEEK_END In-Reply-To: <20140124204709.85C895A4203@corp2gmr1-2.hot.corp.google.com> References: <20140124204709.85C895A4203@corp2gmr1-2.hot.corp.google.com> Message-ID: <20140206234253.GR24361@wotan.suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ocfs2-devel@oss.oracle.com On Fri, Jan 24, 2014 at 12:47:09PM -0800, akpm at linux-foundation.org wrote: > From: Jensen > Subject: ocfs2: llseek requires ocfs2 inode lock for the file in SEEK_END > > llseek requires ocfs2 inode lock for updating the file size in SEEK_END. > because the file size maybe update on another node. > > This bug can be reproduce the following scenario: at first, we dd a test > fileA, the file size is 10k. Basically, you want to amke SEEK_END cluster-aware. This patch would be the right way to do it. Reviewed-by: Mark Fasheh --Mark -- Mark Fasheh