Boaz Harrosh
d863b50ab0
vfs: call rcu_barrier after ->kill_sb()
...
In commit fa0d7e3de6d6 ("fs: icache RCU free inodes"), we use rcu free
inode instead of freeing the inode directly. It causes a crash when we
rmmod immediately after we umount the volume[1].
So we need to call rcu_barrier after we kill_sb so that the inode is
freed before we do rmmod. The idea is inspired by Aneesh Kumar.
rcu_barrier will wait for all callbacks to end before preceding. The
original patch was done by Tao Ma, but synchronize_rcu() is not enough
here.
1. http://marc.info/?l=linux-fsdevel&m=129680863330185&w=2
Tested-by: Tao Ma <boyu.mt@taobao.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-02-11 16:12:19 -08:00
..
2011-01-12 20:03:43 -05:00
2011-01-12 20:02:45 -05:00
2011-01-12 20:03:42 -05:00
2011-01-15 20:07:48 -05:00
2011-01-18 01:21:29 -05:00
2011-01-13 08:03:15 -08:00
2011-01-07 17:50:26 +11:00
2011-02-07 14:06:18 -08:00
2010-10-15 15:53:27 +02:00
2011-01-28 12:12:58 +10:00
2011-02-07 17:25:55 +00:00
2011-01-13 10:27:28 -08:00
2011-01-16 21:22:29 +00:00
2011-01-13 08:03:23 -08:00
2010-10-29 04:16:28 -04:00
2010-10-29 04:16:28 -04:00
2011-01-16 21:22:37 +00:00
2011-01-17 13:01:25 -06:00
2011-01-07 17:50:26 +11:00
2011-02-02 17:53:27 -08:00
2011-01-07 17:50:31 +11:00
2011-01-11 14:37:31 -08:00
2011-01-21 07:33:37 -08:00
2011-01-21 07:33:37 -08:00
2011-01-12 20:02:43 -05:00
2011-01-07 17:50:26 +11:00
2011-01-14 09:23:36 -08:00
2011-01-12 20:02:44 -05:00
2011-01-18 14:49:08 +00:00
2011-01-12 20:02:45 -05:00
2011-02-03 16:34:18 -07:00
2011-01-12 20:03:42 -05:00
2011-01-17 05:11:37 -05:00
2011-01-07 17:50:26 +11:00
2011-01-07 17:50:26 +11:00
2011-01-12 20:02:43 -05:00
2010-12-10 16:04:28 +01:00
2011-01-13 10:05:56 -08:00
2011-01-17 11:15:30 -08:00
2011-01-13 10:45:01 -08:00
2011-01-25 15:24:47 -05:00
2011-01-13 10:45:01 -08:00
2011-01-12 20:02:44 -05:00
2011-01-12 20:03:43 -05:00
2011-01-28 13:41:35 -05:00
2011-01-25 15:24:47 -05:00
2011-01-16 11:31:50 -08:00
2011-01-22 15:22:36 +09:00
2011-01-13 10:05:56 -08:00
2011-01-31 12:58:11 +10:00
2011-01-21 07:33:37 -08:00
2010-10-29 04:16:13 -04:00
2011-01-07 17:50:26 +11:00
2011-01-13 14:47:54 +01:00
2011-01-26 10:50:06 +10:00
2011-01-07 17:50:26 +11:00
2011-01-12 19:14:55 +01:00
2010-10-29 04:16:31 -04:00
2011-01-21 07:33:37 -08:00
2011-01-07 17:50:26 +11:00
2011-01-26 10:50:05 +10:00
2011-01-20 17:02:05 -08:00
2011-01-12 20:02:44 -05:00
2011-01-07 17:50:26 +11:00
2011-01-11 14:45:52 -08:00
2011-01-07 17:50:26 +11:00
2011-01-28 09:13:29 -06:00
2011-01-17 05:12:44 -05:00
2011-01-16 13:47:07 -05:00
2010-08-09 16:47:39 -04:00
2011-01-07 17:50:29 +11:00
2010-10-14 10:57:40 -07:00
2011-01-13 08:03:12 -08:00
2010-10-29 04:16:28 -04:00
2010-08-17 18:07:43 -07:00
2011-01-03 15:01:48 +01:00
2010-11-10 14:40:43 +01:00
2011-01-14 18:44:22 +01:00
2010-12-17 15:18:05 +01:00
2011-01-13 10:45:01 -08:00
2011-01-07 14:39:20 -08:00
2011-01-17 04:54:38 -05:00
2011-01-22 20:32:38 -08:00
2011-01-20 17:02:05 -08:00
2010-08-09 16:47:44 -04:00
2010-10-15 15:53:27 +02:00
2011-02-02 16:03:18 -08:00
2011-02-02 16:03:19 -08:00
2011-02-02 16:03:19 -08:00
2010-10-15 15:53:27 +02:00
2011-02-04 10:40:29 -08:00
2010-08-11 08:59:02 -07:00
2011-01-07 17:50:27 +11:00
2011-01-16 13:47:07 -05:00
2011-01-13 17:32:48 -08:00
2011-01-07 17:50:29 +11:00
2011-01-07 17:50:26 +11:00
2011-01-17 01:47:59 -05:00
2011-02-02 16:03:20 -08:00
2010-11-15 10:23:31 +01:00
2011-01-20 17:02:05 -08:00
2010-10-27 18:03:12 -07:00
2011-01-12 20:03:43 -05:00
2011-01-14 13:17:26 -08:00
2010-10-28 09:44:56 -07:00
2011-01-10 19:04:08 +01:00
2011-01-13 17:32:32 -08:00
2011-02-11 15:53:38 -08:00
2011-01-17 01:47:59 -05:00
2010-10-15 15:53:27 +02:00
2011-02-11 15:53:38 -08:00
2011-01-20 16:21:59 -08:00
2011-01-07 17:50:33 +11:00
2011-01-25 15:24:47 -05:00
2011-01-12 20:06:58 -05:00
2010-08-09 20:45:05 -07:00
2011-01-13 08:03:12 -08:00
2010-10-25 21:26:12 -04:00
2010-10-26 10:13:10 -07:00
2011-01-13 10:45:01 -08:00
2011-01-15 20:07:33 -05:00
2010-08-09 16:48:44 -04:00
2011-02-11 16:12:19 -08:00
2010-08-09 16:47:43 -04:00
2010-10-15 15:53:27 +02:00
2010-08-13 16:53:13 -07:00