diff options
author | Tony Breeds <tony@bakeyournoodle.com> | 2007-03-05 08:30:14 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-05 15:57:51 (GMT) |
commit | 1ad7c311079412541bebaf1c8436d405cc8c6b2c (patch) | |
tree | 579185b75cf968de132d6a2b0cd6d4fd21ff9670 /drivers/scsi/aic7xxx_old.c | |
parent | 5fdc2abe39b76822e34e7029ca5f69fe4bea58d4 (diff) | |
download | linux-fsl-qoriq-1ad7c311079412541bebaf1c8436d405cc8c6b2c.tar.xz |
[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 <tony@bakeyournoodle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/scsi/aic7xxx_old.c')
0 files changed, 0 insertions, 0 deletions