Artem Bityutskiy
a445f784ae
JFFS2: fix unmount regression
...
This patch fixes regression introduced by
"8bdc81c jffs2: get rid of jffs2_sync_super". We submit a delayed work in order
to make sure the write-buffer is synchronized at some point. But we do not
flush it when we unmount, which causes an oops when we unmount the file-system
and then the delayed work is executed.
This patch fixes the issue by adding a "cancel_delayed_work_sync()" infocation
in the '->sync_fs()' handler. This will make sure the delayed work is canceled
on sync, unmount and re-mount. And because VFS always callse 'sync_fs()' before
unmounting or remounting, this fixes the issue.
Reported-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Cc: stable@vger.kernel.org [3.5+]
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tested-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-09-29 14:58:42 +01:00
..
2012-07-31 01:02:46 +04:00
2012-07-14 16:34:32 +04:00
2012-07-30 17:25:16 -07:00
2012-07-14 16:38:34 +04:00
2012-08-16 11:58:28 -07:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:47 +04:00
2012-08-12 21:28:41 +03:00
2012-07-30 17:25:21 -07:00
2012-08-02 09:11:19 -07:00
2012-07-27 15:17:50 -05:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:32 +04:00
2012-07-26 11:25:33 -07:00
2012-07-14 16:38:34 +04:00
2012-07-16 14:24:43 -05:00
2012-08-02 10:56:34 -07:00
2012-07-14 16:34:32 +04:00
2012-08-03 13:24:07 -07:00
2012-07-23 00:01:29 +04:00
2012-08-01 10:26:23 -07:00
2012-08-04 12:15:32 +04:00
2012-08-04 12:15:34 +04:00
2012-08-01 10:26:23 -07:00
2012-07-14 16:34:32 +04:00
2012-08-16 11:46:31 -07:00
2012-08-04 12:15:40 +04:00
2012-08-04 12:15:38 +04:00
2012-07-30 17:25:19 -07:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:47 +04:00
2012-07-23 00:01:29 +04:00
2012-07-31 18:42:40 -07:00
2012-07-24 17:40:44 -07:00
2012-08-04 12:15:36 +04:00
2012-08-04 12:15:36 +04:00
2012-09-29 14:58:42 +01:00
2012-07-23 00:00:58 +04:00
2012-08-01 10:26:23 -07:00
2012-07-14 16:38:34 +04:00
2012-07-30 17:25:19 -07:00
2012-07-14 16:34:47 +04:00
2012-07-31 19:25:39 -07:00
2012-08-01 10:26:23 -07:00
2012-08-04 12:15:38 +04:00
2012-06-01 19:51:22 -07:00
2012-07-23 00:01:29 +04:00
2012-08-01 10:26:23 -07:00
2012-08-01 10:26:23 -07:00
2012-07-14 16:34:47 +04:00
2012-07-14 16:34:32 +04:00
2012-07-30 17:25:20 -07:00
2012-07-17 16:48:09 -07:00
2012-07-30 17:25:16 -07:00
2012-07-14 16:34:32 +04:00
2012-07-24 17:40:44 -07:00
2012-07-14 16:34:47 +04:00
2012-07-23 00:00:58 +04:00
2012-07-14 16:34:32 +04:00
2012-07-14 16:34:32 +04:00
2012-08-01 10:26:23 -07:00
2012-07-22 23:58:12 +04:00
2012-08-04 12:15:41 +04:00
2012-07-24 17:40:44 -07:00
2012-07-22 23:58:16 +04:00
2012-08-01 10:26:23 -07:00
2012-07-22 23:57:59 +04:00
2012-03-20 21:29:45 -04:00
2012-07-14 16:35:42 +04:00
2012-07-14 16:34:47 +04:00
2012-04-20 17:29:13 -07:00
2012-05-23 17:42:39 -07:00
2012-05-30 21:04:55 -04:00
2012-03-20 21:29:46 -04:00
2012-05-30 21:04:56 -04:00
2012-05-06 13:43:41 +08:00
2012-03-20 21:29:46 -04:00
2012-04-20 17:29:13 -07:00
2012-03-20 21:48:21 +08:00
2012-08-04 12:15:37 +04:00
2012-07-22 23:58:45 +04:00
2012-07-31 09:45:47 +04:00
2011-12-13 11:18:17 -08:00
2012-03-24 10:24:31 -07:00
2012-06-01 11:53:44 -07:00
2012-07-14 16:35:15 +04:00
2012-02-28 19:31:58 -05:00
2012-07-14 16:32:46 +04:00
2012-05-31 17:49:32 -07:00
2012-07-17 21:37:27 +02:00
2012-08-01 10:26:23 -07:00
2012-07-30 17:25:21 -07:00
2012-01-06 23:16:53 -05:00
2012-07-16 08:33:14 -07:00
2012-07-31 09:40:38 +04:00
2012-03-29 18:12:23 -07:00
2012-01-03 22:52:39 -05:00
2012-07-14 16:32:47 +04:00
2012-07-31 18:42:40 -07:00
2012-08-01 10:26:23 -07:00
2012-07-31 09:40:38 +04:00
2012-02-28 19:31:58 -05:00
2012-05-30 08:52:42 -07:00
2012-03-21 13:36:41 -07:00
2012-05-15 09:17:34 -04:00
2012-07-14 16:38:34 +04:00
2012-08-01 09:01:46 -07:00
2012-03-20 21:29:38 -04:00
2012-07-14 16:32:48 +04:00
2012-02-28 19:31:58 -05:00
2012-07-31 01:02:49 +04:00
2012-07-31 09:40:38 +04:00
2012-08-04 12:15:41 +04:00
2012-08-01 10:26:23 -07:00
2012-07-14 16:37:27 +04:00
2012-01-03 22:57:11 -05:00
2012-02-28 19:31:58 -05:00
2012-07-14 16:32:48 +04:00
2012-07-23 00:00:15 +04:00
2012-05-29 23:28:29 -04:00
2012-07-26 13:36:43 -07:00
2012-06-11 13:16:35 +01:00
2012-05-29 23:28:30 -04:00
2012-07-31 09:45:47 +04:00
2012-02-28 19:31:58 -05:00
2012-05-23 17:42:39 -07:00
2012-05-29 23:28:31 -04:00
2012-08-04 01:24:44 +04:00
2012-07-22 23:59:01 +04:00
2012-05-29 23:28:32 -04:00
2012-02-28 19:31:58 -05:00
2012-07-30 17:25:11 -07:00