Tejun Heo
c0ea1c22bc
bdi: make backing_dev_info->wb.dwork canceling stricter
...
Canceling of bdi->wb.dwork is currently a bit mushy.
bdi_wb_shutdown() performs cancel_delayed_work_sync() at the end after
shutting down and flushing the delayed_work and bdi_destroy() tries
yet again after bdi_unregister().
bdi->wb.dwork is queued only after checking BDI_registered while
holding bdi->wb_lock and bdi_wb_shutdown() clears the flag while
holding the same lock and then flushes the delayed_work. There's no
way the delayed_work can be queued again after that.
Replace the two unnecessary cancel_delayed_work_sync() invocations
with WARNs on pending. This simplifies and clarifies the code a bit
and will help future changes in further isolating bdi_writeback
handling.
Signed-off-by: Tejun Heo <tj@kernel.org >
Signed-off-by: Jens Axboe <axboe@fb.com >
2014-09-08 10:00:39 -06:00
..
2014-09-08 10:00:39 -06:00
2014-01-23 16:36:50 -08:00
2013-11-13 12:09:09 +09:00
2014-01-23 16:36:50 -08:00
2014-08-06 18:01:16 -07:00
2014-06-04 16:54:11 -07:00
2011-12-06 09:24:07 +01:00
2014-06-04 16:54:08 -07:00
2014-04-07 16:36:15 -07:00
2013-03-03 22:46:22 -05:00
2012-01-03 22:54:56 -05:00
2013-11-06 12:40:26 +01:00
2014-08-11 11:44:11 -07:00
2014-06-06 16:08:17 -07:00
2014-06-04 16:54:07 -07:00
2014-08-06 18:01:20 -07:00
2014-08-06 18:01:22 -07:00
2014-08-08 15:57:17 -07:00
2014-08-14 10:56:15 -06:00
2014-08-06 18:01:21 -07:00
2014-08-06 18:01:19 -07:00
2011-07-26 16:49:47 -07:00
2014-08-06 18:01:16 -07:00
2012-10-09 16:22:42 +09:00
2014-08-07 14:40:11 -04:00
2014-08-06 18:01:23 -07:00
2012-01-10 16:30:42 -08:00
2010-03-30 22:02:32 +09:00
2014-06-06 16:08:18 -07:00
2014-06-06 16:08:17 -07:00
2014-07-16 15:10:39 +02:00
2014-04-03 16:21:01 -07:00
2011-10-31 09:20:12 -04:00
2014-08-06 18:01:18 -07:00
2014-08-06 18:01:23 -07:00
2014-06-06 16:08:17 -07:00
2014-08-08 15:57:18 -07:00
2014-08-06 18:01:21 -07:00
2014-08-06 18:01:19 -07:00
2014-08-08 15:57:27 -07:00
2014-07-10 11:38:23 -07:00
2014-06-06 16:08:17 -07:00
2014-08-08 15:57:17 -07:00
2014-04-03 16:21:00 -07:00
2014-08-06 18:01:20 -07:00
2014-01-27 21:02:39 -08:00
2014-08-08 15:57:31 -07:00
2014-02-21 08:50:17 +01:00
2014-08-06 18:01:22 -07:00
2013-10-09 14:47:45 +02:00
2014-04-07 16:35:50 -07:00
2014-05-11 17:55:48 +09:00
2014-07-03 09:21:53 -07:00
2014-06-06 16:08:17 -07:00
2014-08-08 15:57:27 -07:00
2014-08-06 18:01:21 -07:00
2014-08-06 18:01:21 -07:00
2014-04-03 16:21:02 -07:00
2014-06-14 19:30:48 -05:00
2013-09-11 15:57:48 -07:00
2014-08-06 18:01:21 -07:00
2013-10-30 14:27:03 -07:00
2010-10-02 10:28:42 +03:00
2012-06-20 14:39:36 -07:00
2014-06-19 11:00:27 -04:00
2013-12-18 19:04:51 -08:00
2014-05-06 17:32:49 -04:00
2011-10-31 09:20:11 -04:00
2014-08-06 18:01:15 -07:00
2014-08-08 15:57:17 -07:00
2014-08-11 11:44:11 -07:00
2014-08-06 18:01:15 -07:00
2014-08-08 15:57:17 -07:00
2014-08-06 18:01:15 -07:00
2014-06-04 16:53:59 -07:00
2014-08-06 18:01:21 -07:00
2014-01-21 16:19:47 -08:00
2014-04-07 16:35:54 -07:00
2014-08-08 15:57:31 -07:00
2014-08-08 15:57:18 -07:00
2014-08-08 15:57:17 -07:00
2014-08-08 15:57:17 -07:00
2014-08-08 15:57:17 -07:00
2014-06-04 16:53:57 -07:00
2014-08-06 18:01:19 -07:00
2014-02-03 13:24:01 -05:00
2014-08-08 15:57:18 -07:00
2014-08-06 18:01:20 -07:00
2014-04-03 16:21:01 -07:00
2014-08-06 18:01:23 -07:00
2014-08-06 18:01:23 -07:00
2014-08-06 18:01:23 -07:00
2014-08-08 15:57:18 -07:00