diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2012-03-02 10:51:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-19 09:02:34 -0700 |
commit | 2053689f68e19b8c1bb38aa68049c57576eed6e0 (patch) | |
tree | e46163b3f66816e302822f2ce6b62466b6f50b63 /Documentation/ldm.txt | |
parent | eee92c36399fe1c0d19de4982e9cfdf526b37922 (diff) | |
download | kernel_samsung_smdk4412-2053689f68e19b8c1bb38aa68049c57576eed6e0.zip kernel_samsung_smdk4412-2053689f68e19b8c1bb38aa68049c57576eed6e0.tar.gz kernel_samsung_smdk4412-2053689f68e19b8c1bb38aa68049c57576eed6e0.tar.bz2 |
Block: use a freezable workqueue for disk-event polling
commit 62d3c5439c534b0e6c653fc63e6d8c67be3a57b1 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 <stern@rowland.harvard.edu>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/ldm.txt')
0 files changed, 0 insertions, 0 deletions