diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2012-03-02 13:51:00 +0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-03-02 13:51:00 +0400 |
commit | 62d3c5439c534b0e6c653fc63e6d8c67be3a57b1 (patch) | |
tree | d335d0e449ef2d61d52921e3f210cdd403bb025a /block/blk-cgroup.h | |
parent | cecd353a02fb1405c8a72a324b26b5acf97e7411 (diff) | |
download | linux-62d3c5439c534b0e6c653fc63e6d8c67be3a57b1.tar.xz |
Block: use a freezable workqueue for disk-event polling
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 <stern@rowland.harvard.edu>
CC: <stable@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.h')
0 files changed, 0 insertions, 0 deletions