Anton Altaparmakov
bfab36e816
NTFS: Fix a mount time deadlock.
...
Big thanks go to Mathias Kolehmainen for reporting the bug, providing
debug output and testing the patches I sent him to get it working.
The fix was to stop calling ntfs_attr_set() at mount time as that causes
balance_dirty_pages_ratelimited() to be called which on systems with
little memory actually tries to go and balance the dirty pages which tries
to take the s_umount semaphore but because we are still in fill_super()
across which the VFS holds s_umount for writing this results in a
deadlock.
We now do the dirty work by hand by submitting individual buffers. This
has the annoying "feature" that mounting can take a few seconds if the
journal is large as we have clear it all. One day someone should improve
on this by deferring the journal clearing to a helper kernel thread so it
can be done in the background but I don't have time for this at the moment
and the current solution works fine so I am leaving it like this for now.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2007-10-12 09:16:30 -07:00
..
2007-08-23 10:13:45 -05:00
2007-07-20 10:11:58 +09:00
2007-07-20 10:11:58 +09:00
2007-10-10 16:49:10 -07:00
2007-05-11 08:29:36 -07:00
2007-08-22 19:52:46 -07:00
2007-07-20 10:11:58 +09:00
2007-07-20 10:11:58 +09:00
2007-08-18 00:15:20 +00:00
2007-07-21 17:49:14 -07:00
2007-07-20 10:11:58 +09:00
2007-05-07 12:12:51 -07:00
2007-07-18 15:49:48 -07:00
2007-05-08 11:14:59 -07:00
2007-10-10 08:56:38 +01:00
2007-10-10 21:15:29 -07:00
2007-07-20 10:11:58 +09:00
2007-07-17 10:23:06 -07:00
2007-07-26 11:35:17 -07:00
2007-09-19 11:24:18 -07:00
2007-09-19 11:24:18 -07:00
2007-07-20 10:11:58 +09:00
2007-07-20 10:11:58 +09:00
2007-07-20 10:11:58 +09:00
2007-10-12 09:14:51 -07:00
2007-07-20 10:11:58 +09:00
2007-07-20 10:11:58 +09:00
2007-07-10 08:04:13 +02:00
2007-07-20 10:11:58 +09:00
2007-08-31 01:42:23 -07:00
2007-07-31 15:39:41 -07:00
2007-07-20 10:11:58 +09:00
2007-07-20 10:11:58 +09:00
2007-09-02 18:18:38 +01:00
2007-10-12 00:29:50 -07:00
2007-10-09 12:38:26 -07:00
2007-07-20 10:11:58 +09:00
2007-07-31 15:39:41 -07:00
2007-09-28 15:36:42 -07:00
2007-09-10 18:57:47 -07:00
2007-07-16 09:05:52 -07:00
2007-10-12 09:16:30 -07:00
2007-10-12 00:29:50 -07:00
2007-07-20 10:11:58 +09:00
2007-07-30 00:27:31 -07:00
2007-10-10 16:54:58 -07:00
2007-07-20 10:11:58 +09:00
2007-07-31 15:39:36 -07:00
2007-09-11 17:21:19 -07:00
2007-07-20 10:11:58 +09:00
2007-07-20 10:11:58 +09:00
2007-08-22 14:35:36 -07:00
2007-07-20 10:11:58 +09:00
2007-08-31 01:42:22 -07:00
2007-09-25 08:51:04 -07:00
2007-10-12 00:29:50 -07:00
2007-10-08 12:58:14 -07:00
2007-07-17 11:50:26 -07:00
2007-07-17 12:00:03 -07:00
2007-07-10 08:04:15 +02:00
2007-07-19 10:04:47 -07:00
2007-09-19 15:12:19 +10:00
2007-05-08 11:15:07 -07:00
2007-10-03 23:43:57 +08:00
2007-07-19 10:04:45 -07:00
2007-07-19 10:04:45 -07:00
2007-10-10 09:25:57 +02:00
2007-10-10 09:25:57 +02:00
2007-10-10 09:25:57 +02:00
2007-07-19 10:04:43 -07:00
2007-10-11 19:40:14 -07:00
2007-07-19 10:04:45 -07:00
2007-07-20 10:11:58 +09:00
2007-07-29 17:09:29 -07:00
2007-10-10 09:25:57 +02:00
2007-07-20 10:11:58 +09:00
2007-07-20 10:11:58 +09:00
2007-07-16 09:05:36 -07:00
2007-05-18 13:09:34 -07:00
2007-07-20 10:11:58 +09:00
2007-09-20 13:19:59 -07:00
2007-07-20 10:11:58 +09:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:01 -07:00
2007-10-10 09:25:57 +02:00
2007-07-17 12:00:03 -07:00
2007-07-20 10:11:58 +09:00
2007-07-20 10:11:58 +09:00
2007-05-08 11:15:11 -07:00
2007-05-08 11:15:09 -07:00
2007-07-16 09:05:48 -07:00
2007-09-11 11:38:25 -07:00
2007-05-21 14:34:00 +09:00
2007-05-09 06:44:57 +02:00
2007-09-11 17:21:27 -07:00
2007-05-11 08:29:36 -07:00
2007-07-20 10:11:58 +09:00
2007-10-10 09:25:57 +02:00
2007-07-19 10:04:45 -07:00
2007-07-20 10:11:58 +09:00
2007-07-19 10:04:45 -07:00
2007-07-31 15:39:42 -07:00
2007-07-27 08:08:51 +02:00
2007-05-08 11:15:11 -07:00
2007-07-27 15:40:13 -07:00
2007-07-10 08:04:15 +02:00
2007-05-08 11:15:09 -07:00
2007-09-11 17:21:20 -07:00
2007-10-10 16:55:33 -07:00
2007-09-20 13:19:59 -07:00
2007-10-01 13:17:28 -07:00
2007-05-08 11:15:07 -07:00
2007-07-16 09:05:46 -07:00
2007-06-28 11:38:30 -07:00
2007-07-26 11:35:17 -07:00
2007-07-17 12:00:03 -07:00
2007-07-17 12:00:03 -07:00