Re: [PATCH 45/51] writeback: implement wb_wait_for_single_work()

2015-07-01 Thread Tejun Heo
Hello, On Wed, Jul 01, 2015 at 09:07:35PM +0200, Jan Kara wrote: > I don't understand, why is the special handling with single_wait, > single_done necessary. When we fail to allocate work and thus use the > base_work for submission, we can still use the standard completion mechanism > to wait for

Re: [PATCH 45/51] writeback: implement wb_wait_for_single_work()

2015-07-01 Thread Jan Kara
On Fri 22-05-15 17:13:59, Tejun Heo wrote: > For cgroup writeback, multiple wb_writeback_work items may need to be > issuedto accomplish a single task. The previous patch updated the > waiting mechanism such that wb_wait_for_completion() can wait for > multiple work items. > > Issuing mulitple wo

[PATCH 45/51] writeback: implement wb_wait_for_single_work()

2015-05-22 Thread Tejun Heo
For cgroup writeback, multiple wb_writeback_work items may need to be issuedto accomplish a single task. The previous patch updated the waiting mechanism such that wb_wait_for_completion() can wait for multiple work items. Issuing mulitple work items involves memory allocation which may fail. As