Displaying 1 result from an estimated 1 matches for "3afd24c".
Did you mean:
3aefd2c
2013 Jun 20
2
[PATCH] ocfs2: llseek requires to ocfs2 inode lock for the file in SEEK_END
...the test program1 on NodeA again, the result is 10k.
after apply this patch. the three step result is 15k.
Signed-off-by: jensen <shencanquan at huawei.com>
---
fs/ocfs2/file.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index ff54014..3afd24c 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -2626,7 +2626,16 @@ static loff_t ocfs2_file_llseek(struct file *file, loff_t offset, int whence)
case SEEK_SET:
break;
case SEEK_END:
+ /* SEEK_END requires the OCFS2 inode lock for the file
+ * because it references the file's si...