Please sign in to comment.
Block: use a freezable workqueue for disk-event polling
commit 62d3c54 upstream. This patch (as1519) fixes a bug in the block layer's disk-events polling. The polling is done by a work routine queued on the system_nrt_wq workqueue. Since that workqueue isn't freezable, the polling continues even in the middle of a system sleep transition. Obviously, polling a suspended drive for media changes and such isn't a good thing to do; in the case of USB mass-storage devices it can lead to real problems requiring device resets and even re-enumeration. The patch fixes things by creating a new system-wide, non-reentrant, freezable workqueue and using it for disk-events polling. Signed-off-by: Alan Stern <email@example.com> Acked-by: Tejun Heo <firstname.lastname@example.org> Acked-by: Rafael J. Wysocki <email@example.com> Signed-off-by: Jens Axboe <firstname.lastname@example.org> Signed-off-by: Greg Kroah-Hartman <email@example.com>
- Loading branch information...
Showing with 15 additions and 6 deletions.