Nick Piggin
4b19de6d1c
mm: tiny-shmem nommu fix
...
The previous patch db203d53d4 ("mm:
tiny-shmem fix lock ordering: mmap_sem vs i_mutex") to fix the lock
ordering in tiny-shmem breaks shared anonymous and IPC memory on NOMMU
architectures because it was using the expanding truncate to signal ramfs
to allocate a physically contiguous RAM backing the inode (otherwise it is
unusable for "memory mapping" it to userspace).
However do_truncate is what caused the lock ordering error, due to it
taking i_mutex. In this case, we can actually just call ramfs directly to
allocate memory for the mapping, rather than go via truncate.
Acked-by: David Howells <dhowells@redhat.com >
Acked-by: Hugh Dickins <hugh@veritas.com >
Signed-off-by: Nick Piggin <npiggin@suse.de >
Cc: Matt Mackall <mpm@selenic.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-10-02 15:53:13 -07:00
..
2008-07-25 09:28:09 -07:00
2008-08-10 23:32:07 +02:00
2008-09-15 14:25:23 -07:00
2008-07-23 13:09:48 -07:00
2008-08-05 14:33:46 -07:00
2008-08-13 16:57:31 -04:00
2008-08-13 17:33:01 -07:00
2008-08-12 10:13:38 +10:00
2008-03-28 22:14:15 -04:00
2008-07-17 17:59:55 -07:00
2008-09-13 16:46:15 -04:00
2007-10-11 22:24:13 +01:00
2008-08-12 16:07:30 -07:00
2008-04-29 08:11:16 -07:00
2008-09-11 14:20:23 +02:00
2008-08-12 16:07:27 -07:00
2008-08-04 21:56:09 -07:00
2008-08-12 16:07:30 -07:00
2008-08-14 22:59:43 +10:00
2008-04-30 08:29:54 -07:00
2008-09-05 11:11:51 +02:00
2008-05-01 08:03:59 -07:00
2008-09-24 16:38:17 -07:00
2005-04-16 15:20:36 -07:00
2007-10-17 08:42:47 -07:00
2008-08-15 08:35:44 -07:00
2008-04-29 08:06:06 -07:00
2008-07-25 10:53:40 -07:00
2008-09-06 19:22:15 +02:00
2008-08-14 09:35:23 +10:00
2008-08-25 01:18:05 -04:00
2008-07-05 13:10:50 -07:00
2008-07-21 21:54:59 -07:00
2008-04-30 08:29:53 -07:00
2008-07-21 12:00:37 +01:00
2008-08-21 10:15:37 -07:00
2008-08-07 02:22:54 -04:00
2007-02-11 11:18:07 -08:00
2008-07-01 14:47:09 +10:00
2006-09-28 18:02:08 -07:00
2008-02-13 16:21:19 -08:00
2008-08-07 02:22:08 -04:00
2008-08-20 13:19:51 -07:00
2008-08-20 15:40:32 -07:00
2008-05-16 17:22:26 -04:00
2008-08-12 16:07:31 -07:00
2006-12-08 08:28:40 -08:00
2008-07-26 20:53:20 -04:00
2008-08-23 12:14:12 -07:00
2008-08-15 08:35:42 -07:00
2006-10-02 07:57:12 -07:00
2008-07-20 17:12:36 -07:00
2008-08-27 09:50:19 +02:00
2008-07-23 15:25:21 +02:00
2008-09-29 17:09:14 +02:00
2008-08-12 16:07:29 -07:00
2008-08-08 15:13:27 +01:00
2008-08-28 08:33:23 +02:00
2008-09-02 20:18:47 +02:00
2008-08-15 19:52:19 -07:00
2008-08-12 17:52:54 +10:00
2007-04-29 23:42:45 -04:00
2008-07-21 00:55:14 -04:00
2008-08-05 14:33:48 -07:00
2008-09-13 14:41:50 -07:00
2008-08-16 16:46:57 -07:00
2008-08-16 16:46:57 -07:00
2008-09-05 15:44:31 +01:00
2007-07-31 15:39:40 -07:00
2007-04-04 21:12:47 -07:00
2008-08-12 16:07:29 -07:00
2008-08-15 08:35:42 -07:00
2008-04-30 08:29:54 -07:00
2008-07-24 19:11:15 -07:00
2008-08-25 17:28:25 +03:00
2008-08-22 02:27:49 -04:00
2008-05-16 14:50:49 -04:00
2008-09-01 09:47:16 +02:00
2008-06-27 09:39:47 +01:00
2008-08-11 15:25:07 +02:00
2008-02-06 10:41:01 -08:00
2008-04-15 19:35:41 -07:00
2008-07-25 10:53:37 -07:00
2008-04-29 08:06:12 -07:00
2008-09-13 14:41:52 -07:00
2007-02-11 10:51:17 -08:00
2008-08-16 16:45:56 -07:00
2008-08-16 16:45:56 -07:00
2005-04-16 15:20:36 -07:00
2008-09-13 14:41:52 -07:00
2008-07-24 10:47:24 -07:00
2005-04-16 15:20:36 -07:00
2008-02-13 16:21:19 -08:00
2008-07-11 19:27:31 -04:00
2006-11-30 04:40:22 +01:00
2008-08-29 14:37:23 -07:00
2008-08-29 14:37:23 -07:00
2008-06-06 11:29:12 -07:00
2008-04-07 12:15:39 -05:00
2008-02-13 16:21:18 -08:00
2008-08-26 10:37:20 -07:00
2008-08-04 23:04:08 -07:00
2006-08-27 11:01:32 -07:00
2008-07-25 10:53:37 -07:00
2008-07-25 22:25:13 -04:00
2005-04-16 15:20:36 -07:00
2005-05-05 16:36:31 -07:00
2008-08-15 09:15:47 -07:00
2008-08-18 13:48:04 -07:00
2008-09-16 15:52:08 -07:00
2008-08-20 15:40:32 -07:00
2008-08-29 14:37:23 -07:00
2008-08-05 14:33:50 -07:00
2008-09-16 19:35:05 -07:00
2006-10-03 23:01:26 +02:00
2008-08-07 17:18:47 -07:00
2008-09-02 19:21:38 -07:00
2008-04-19 19:10:33 -07:00
2008-10-02 15:53:13 -07:00
2008-08-11 09:30:24 +02:00
2008-08-15 08:35:42 -07:00
2008-09-05 14:39:37 -07:00
2008-04-29 08:05:59 -07:00
2008-07-29 16:36:33 -04:00
2008-08-20 15:40:32 -07:00
2006-07-13 13:21:35 -07:00
2008-07-26 12:00:12 -07:00
2007-01-26 13:51:00 -08:00
2008-07-25 21:45:49 -07:00
2006-04-26 12:56:16 +01:00
2008-09-05 18:14:35 +02:00
2008-07-04 10:40:08 -07:00
2008-08-17 22:47:30 +10:00
2007-10-16 09:43:17 -07:00
2008-07-25 10:53:42 -07:00
2008-08-12 16:07:30 -07:00
2008-02-07 08:42:34 -08:00
2008-08-15 19:52:30 -07:00
2008-08-05 09:28:47 +03:00
2008-09-23 08:09:13 -07:00
2008-07-27 01:47:00 +02:00
2008-08-11 09:30:24 +02:00
2008-08-11 09:30:24 +02:00
2008-01-25 21:08:34 +01:00
2006-12-07 02:14:08 +01:00
2008-08-26 00:19:27 +10:00
2005-04-16 15:20:36 -07:00
2008-08-15 08:35:42 -07:00
2008-08-12 16:07:30 -07:00
2008-07-25 17:28:49 -07:00
2008-07-26 20:53:12 -04:00
2008-07-21 21:55:02 -07:00
2008-08-21 09:54:06 +02:00
2008-04-30 08:29:53 -07:00
2008-07-24 10:47:29 -07:00
2008-09-05 14:39:38 -07:00
2008-08-15 10:34:07 -07:00
2008-08-15 10:34:07 -07:00
2008-08-21 10:26:36 -07:00
2008-09-03 18:37:45 -03:00
2008-07-25 12:06:04 +10:00
2008-08-16 16:45:56 -07:00
2008-08-15 10:34:07 -07:00
2008-06-16 18:50:49 -07:00
2008-07-25 10:53:40 -07:00
2008-07-15 08:36:38 -07:00