diff options
| author | Tony Breeds <[email protected]> | 2007-03-05 00:30:14 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-03-05 07:57:51 -0800 |
| commit | 1ad7c311079412541bebaf1c8436d405cc8c6b2c (patch) | |
| tree | 579185b75cf968de132d6a2b0cd6d4fd21ff9670 /include/linux/debugobjects.h | |
| parent | 5fdc2abe39b76822e34e7029ca5f69fe4bea58d4 (diff) | |
[PATCH] Fix soft lockup with iSeries viocd driver
Fix soft lockup with iSeries viocd driver, caused by eventually calling
end_that_request_first() with nr_bytes 0.
Some versions of hald do an SG_IO ioctl on the viocd device which becomes a
request with hard_nr_sectors and hard_cur_sectors set to zero. Passing zero
as the number of sectors to end_request() (which calls
end_that_request_first()) causes an infinite loop when the bio is being freed.
This patch makes sure that the zero is never passed. It only requires some
number larger the the request size the terminate the loop.
The lockup is triggered by hald, interrogating the device.
Signed-off-by: Tony Breeds <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions