linux/drivers/cdrom
Tony Breeds 1ad7c31107 [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>
2007-03-05 07:57:51 -08:00
..
Kconfig
Makefile
aztcd.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
aztcd.h
cdrom.c [PATCH] sysctl: remove insert_at_head from register_sysctl 2007-02-14 08:09:59 -08:00
cdu31a.c
cdu31a.h
cm206.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
cm206.h
gscd.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
gscd.h
isp16.c
isp16.h
mcdx.c
mcdx.h
optcd.c
optcd.h
sbpcd.c
sbpcd.h
sjcd.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
sjcd.h
sonycd535.c
sonycd535.h
viocd.c [PATCH] Fix soft lockup with iSeries viocd driver 2007-03-05 07:57:51 -08:00