mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
1ad7c31107
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> |
||
---|---|---|
.. | ||
aztcd.c | ||
aztcd.h | ||
cdrom.c | ||
cdu31a.c | ||
cdu31a.h | ||
cm206.c | ||
cm206.h | ||
gscd.c | ||
gscd.h | ||
isp16.c | ||
isp16.h | ||
Kconfig | ||
Makefile | ||
mcdx.c | ||
mcdx.h | ||
optcd.c | ||
optcd.h | ||
sbpcd.c | ||
sbpcd.h | ||
sjcd.c | ||
sjcd.h | ||
sonycd535.c | ||
sonycd535.h | ||
viocd.c |