Wengang Wang
9c0f0a03e3
ocfs2: drop acl cache for directories too
...
ocfs2_data_convert_worker() is currently dropping any cached acl info
for FILE before down-converting meta lock. It should also drop for
DIRECTORY. Otherwise the second acl lookup returns the cached one (from
VFS layer) which could be already stale.
The problem we are seeing is that the acl changes on one node doesn't
get refreshed on other nodes in the following case:
Node 1 Node 2
-------------- ----------------
getfacl dir1
getfacl dir1 <-- this is OK
setfacl -m u:user1:rwX dir1
getfacl dir1 <-- see the change for user1
getfacl dir1 <-- can't see change for user1
Link: https://lkml.kernel.org/r/20210903012631.6099-1-wen.gang.wang@oracle.com
Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-09-24 16:13:34 -07:00
..
2021-09-02 09:21:27 -07:00
2021-06-29 10:53:48 -07:00
2021-06-29 10:53:48 -07:00
2021-09-13 09:14:21 +01:00
2021-03-24 14:14:27 -04:00
2021-08-19 09:02:55 +09:00
2021-06-29 10:53:48 -07:00
2021-09-23 14:39:41 -07:00
2021-08-27 13:34:02 +01:00
2021-09-21 17:39:20 +02:00
2021-09-17 16:59:41 -05:00
2021-04-23 14:42:39 -07:00
2021-08-25 07:58:49 +02:00
2021-01-05 23:02:47 -05:00
2021-07-25 20:47:05 -07:00
2021-08-05 14:42:40 +02:00
2021-09-01 11:29:14 -05:00
2021-06-29 10:53:48 -07:00
2021-04-12 15:04:29 +02:00
2021-09-09 11:39:57 -07:00
2021-07-06 11:06:04 -07:00
2021-09-22 13:05:23 +02:00
2021-09-09 11:39:57 -07:00
2021-09-04 10:48:47 -07:00
2021-09-02 12:32:12 -07:00
2021-08-27 13:34:03 +01:00
2021-09-07 12:18:29 -07:00
2021-09-09 12:45:26 -07:00
2021-07-15 10:13:49 -07:00
2021-07-01 11:06:06 -07:00
2021-08-26 22:28:02 +02:00
2021-07-27 11:00:36 +02:00
2021-07-23 17:43:28 -07:00
2021-08-26 09:18:53 -07:00
2021-08-12 16:07:14 +02:00
2021-08-30 23:36:50 -04:00
2021-08-18 22:08:24 +02:00
2021-08-18 22:08:24 +02:00
2021-07-27 09:29:15 +02:00
2021-09-18 10:51:38 -05:00
2021-09-22 09:21:02 -07:00
2021-06-29 10:53:48 -07:00
2021-06-21 21:24:07 +01:00
2021-09-04 10:25:26 -07:00
2021-07-06 20:14:41 -04:00
2021-09-22 09:21:02 -07:00
2021-09-08 12:55:35 -07:00
2021-09-10 09:46:48 -07:00
2021-07-03 11:30:04 -07:00
2021-09-04 11:15:50 -07:00
2021-09-24 16:13:34 -07:00
2021-06-29 10:53:48 -07:00
2021-03-12 22:15:22 -05:00
2021-08-18 22:08:24 +02:00
2021-08-18 22:08:24 +02:00
2021-09-08 12:55:35 -07:00
2021-06-30 12:21:16 -07:00
2021-09-21 08:36:48 -07:00
2021-06-22 10:40:52 +02:00
2021-06-29 10:53:48 -07:00
2021-09-03 15:33:47 -07:00
2021-09-13 14:51:10 -05:00
2021-08-16 10:50:32 -06:00
2021-08-06 13:05:28 +02:00
2021-06-29 10:53:48 -07:00
2021-03-23 14:08:18 -04:00
2021-07-25 20:01:07 -07:00
2021-08-23 13:35:19 +02:00
2021-08-19 09:02:55 +09:00
2021-05-02 00:43:35 +09:00
2021-06-23 14:36:52 +02:00
2021-04-22 17:31:32 +10:00
2021-09-09 11:39:57 -07:00
2021-08-30 10:24:50 -07:00
2021-08-28 01:33:02 +02:00
2021-01-15 12:17:25 -05:00
2021-08-13 00:41:05 -04:00
2021-08-18 22:08:24 +02:00
2021-09-05 10:15:05 -07:00
2021-09-03 18:42:01 +02:00
2021-09-03 18:42:01 +02:00
2021-06-29 10:53:50 -07:00
2021-03-13 11:27:30 -08:00
2021-09-01 14:52:05 -07:00
2021-01-06 08:42:51 -05:00
2021-09-08 11:50:27 -07:00
2021-09-02 10:07:29 -07:00
2021-08-31 11:13:35 -07:00
2021-04-15 22:36:45 -04:00
2021-04-09 14:54:23 -07:00
2021-09-03 09:58:10 -07:00
2021-09-06 07:20:56 -04:00
2021-09-09 13:25:49 -07:00
2021-09-04 11:35:47 -07:00
2021-09-03 10:08:28 -07:00
2021-04-07 13:56:43 -04:00
2021-09-11 14:48:42 -07:00
2021-08-23 01:25:40 -04:00
2021-09-03 09:58:12 -07:00
2021-09-07 16:07:47 -04:00
2021-09-03 10:08:28 -07:00
2021-01-24 14:27:19 +01:00
2021-09-17 13:39:23 +02:00
2021-09-07 08:39:40 -06:00
2021-09-17 09:23:44 -07:00
2021-09-13 10:38:13 -06:00
2021-08-29 07:55:55 -06:00
2021-08-31 11:06:32 -07:00
2021-09-12 10:10:21 -07:00
2021-07-25 22:33:03 -07:00
2021-04-07 13:56:43 -04:00
2021-06-29 10:53:48 -07:00
2021-09-07 11:21:48 -07:00
2021-09-12 10:10:21 -07:00
2021-01-24 14:29:34 +01:00
2021-03-11 07:47:48 -07:00
2021-09-07 16:14:05 -04:00
2021-09-03 10:08:28 -07:00
2021-08-23 06:15:36 -04:00
2021-09-07 11:03:45 -07:00
2021-03-08 15:18:43 +01:00
2021-08-18 22:08:24 +02:00
2021-01-24 14:43:45 +01:00
2021-08-24 07:52:45 -04:00
2021-04-17 11:39:49 -07:00
2021-08-23 06:15:36 -04:00
2021-09-07 11:26:23 -07:00
2021-07-19 17:18:48 -07:00
2021-07-23 13:16:43 -05:00
2021-02-21 11:02:48 -08:00
2021-08-17 11:47:43 +02:00
2021-02-13 17:17:53 +01:00
2021-08-09 11:53:26 -06:00
2021-08-10 17:57:22 +02:00
2021-09-03 09:58:16 -07:00
2021-01-24 14:27:18 +01:00
2021-03-23 11:20:26 +01:00