1 |
Author: mpagano |
2 |
Date: 2014-01-23 18:31:00 +0000 (Thu, 23 Jan 2014) |
3 |
New Revision: 2650 |
4 |
|
5 |
Added: |
6 |
genpatches-2.6/trunk/3.13/1900_frozen-fs-time-update.patch |
7 |
Modified: |
8 |
genpatches-2.6/trunk/3.13/0000_README |
9 |
Log: |
10 |
Skip file_update_time on frozen fs |
11 |
|
12 |
Modified: genpatches-2.6/trunk/3.13/0000_README |
13 |
=================================================================== |
14 |
--- genpatches-2.6/trunk/3.13/0000_README 2014-01-21 15:00:14 UTC (rev 2649) |
15 |
+++ genpatches-2.6/trunk/3.13/0000_README 2014-01-23 18:31:00 UTC (rev 2650) |
16 |
@@ -50,7 +50,12 @@ |
17 |
From: https://bugs.gentoo.org/show_bug.cgi?id=449248 |
18 |
Desc: Enable mic mute led in thinkpads |
19 |
|
20 |
+Patch: 1900_frozen-fs-time-update.patch |
21 |
+From: https://bugs.gentoo.org/show_bug.cgi?id=493002 |
22 |
+Desc: Skip file_update_time on frozen fs |
23 |
+ |
24 |
Patch: 2400_kcopy-patch-for-infiniband-driver.patch |
25 |
+Patch: 2400_kcopy-patch-for-infiniband-driver.patch |
26 |
From: Alexey Shvetsov <alexxy@g.o> |
27 |
Desc: Zero copy for infiniband psm userspace driver |
28 |
|
29 |
|
30 |
Added: genpatches-2.6/trunk/3.13/1900_frozen-fs-time-update.patch |
31 |
=================================================================== |
32 |
--- genpatches-2.6/trunk/3.13/1900_frozen-fs-time-update.patch (rev 0) |
33 |
+++ genpatches-2.6/trunk/3.13/1900_frozen-fs-time-update.patch 2014-01-23 18:31:00 UTC (rev 2650) |
34 |
@@ -0,0 +1,31 @@ |
35 |
+From a529bbf697530e4c57ba8293b0d659c46e50d3ad Mon Sep 17 00:00:00 2001 |
36 |
+From: Dmitry Monakhov <dmonakhov@××××××.org> |
37 |
+Date: Wed, 15 Jan 2014 05:55:43 +0000 |
38 |
+Subject: fs/pipe.c: skip file_update_time on frozen fs |
39 |
+ |
40 |
+Pipe has no data associated with fs so it is not good idea to block |
41 |
+pipe_write() if FS is frozen, but we can not update file's time on such |
42 |
+filesystem. Let's use same idea as we use in touch_time(). |
43 |
+ |
44 |
+Addresses https://bugzilla.kernel.org/show_bug.cgi?id=65701 |
45 |
+ |
46 |
+Signed-off-by: Dmitry Monakhov <dmonakhov@××××××.org> |
47 |
+Reviewed-by: Jan Kara <jack@××××.cz> |
48 |
+Cc: Al Viro <viro@×××××××××××××××.uk> |
49 |
+Signed-off-by: Andrew Morton <akpm@××××××××××××××××.org> |
50 |
+--- |
51 |
+--- a/fs/pipe.c 2014-01-23 13:17:08.290011999 -0500 |
52 |
++++ b/fs/pipe.c 2014-01-23 13:18:24.140012053 -0500 |
53 |
+@@ -663,10 +663,11 @@ out: |
54 |
+ wake_up_interruptible_sync_poll(&pipe->wait, POLLIN | POLLRDNORM); |
55 |
+ kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN); |
56 |
+ } |
57 |
+- if (ret > 0) { |
58 |
++ if (ret > 0 && sb_start_write_trylock(file_inode(filp)->i_sb)) { |
59 |
+ int err = file_update_time(filp); |
60 |
+ if (err) |
61 |
+ ret = err; |
62 |
++ sb_end_write(file_inode(filp)->i_sb); |
63 |
+ } |
64 |
+ return ret; |
65 |
+ } |