Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1453665
| From | Michal Hocko <mhocko@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue |
| Date | 2016-08-02 10:40 +0200 |
| Message-ID | <s1DoZ-20O-5@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <rZDW9-4k0-7@gated-at.bofh.it> <s0fRM-55X-5@gated-at.bofh.it> <s1lV7-73w-15@gated-at.bofh.it> <s1moa-7tr-19@gated-at.bofh.it> <s1D5E-1T7-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue 02-08-16 10:06:12, Oliver Neukum wrote: > On Mon, 2016-08-01 at 10:20 -0400, Tejun Heo wrote: > > Hello, > > > > If any real IO depends on those devices then this is not sufficient and > > > they need some form of guarantee for progress (aka mempool). > > > > Oliver, Alan, what do you think? If USB itself can't operate without > > allocating memory during transactions, whatever USB storage drivers > > It cannot. The IO must be described to the hardware with a data > structure in memory. > > > are doing isn't all that meaningful. Can we proceed with the > > workqueue patches? Also, it could be that the only thing GFP_NOIO and > > GFP_ATOMIC are doing is increasing the chance of IO failures under > > memory pressure. Maybe it'd be a good idea to reconsider the > > approach? > > We had actual deadlocks with GFP_KERNEL. It seems to me that the SCSI > layer can deal with IO that cannot be completed due to a lack of memory > at least somewhat, but a deadlock within a driver would obviously be > deadly. So I don't think that mempools would remove the need for > GFP_NOIO as there are places in usbcore we cannot enter the page > laundering path from. They are an additional need. OK, I guess there is some misunderstanding here. I believe that Tejun wasn't arguing to drop GFP_NOIO. It might be really needed for the dead lock avoidance. No question about that. The whole point is that WQ_RECLAIM might be completely pointless because a rescuer wouldn't help much if the work item would do GFP_NOIO and get stuck in the page allocator. -- Michal Hocko SUSE Labs
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Bhaktipriya Shridhar <bhaktipriya96@gmail.com> - 2016-07-27 11:30 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Oliver Neukum <oneukum@suse.com> - 2016-07-27 11:40 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Tejun Heo <tj@kernel.org> - 2016-07-27 20:10 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Alan Stern <stern@rowland.harvard.edu> - 2016-07-27 21:00 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Tejun Heo <tj@kernel.org> - 2016-07-27 21:30 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Alan Stern <stern@rowland.harvard.edu> - 2016-07-27 22:50 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Tejun Heo <tj@kernel.org> - 2016-07-29 15:20 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Michal Hocko <mhocko@kernel.org> - 2016-08-01 16:00 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Tejun Heo <tj@kernel.org> - 2016-08-01 16:30 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Alan Stern <stern@rowland.harvard.edu> - 2016-08-01 21:10 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Michal Hocko <mhocko@kernel.org> - 2016-08-01 21:40 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Oliver Neukum <oneukum@suse.com> - 2016-08-02 10:20 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Michal Hocko <mhocko@kernel.org> - 2016-08-02 10:40 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Oliver Neukum <oneukum@suse.com> - 2016-08-02 12:10 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Michal Hocko <mhocko@kernel.org> - 2016-08-02 14:00 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Oliver Neukum <oneukum@suse.com> - 2016-08-02 15:40 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Tejun Heo <tj@kernel.org> - 2016-08-02 21:20 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Michal Hocko <mhocko@kernel.org> - 2016-08-02 23:40 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Michal Hocko <mhocko@kernel.org> - 2016-08-02 16:00 +0200
Re: [RFC] usb: host: u132-hcd: Remove deprecated create_singlethread_workqueue Oliver Neukum <oneukum@suse.com> - 2016-08-02 19:20 +0200
csiph-web