android_kernel_xiaomi_sm8350/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
..
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 IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
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 [PATCH] Update CREDITS entry and listings in source files for Jesper Juhl 2005-07-27 16:26:20 -07:00
isp16.h
Kconfig [PATCH] BLOCK: Make it possible to disable the block layer [try #6] 2006-09-30 20:52:31 +02:00
Makefile
mcdx.c Various drivers' irq handlers: kill dead code, needless casts 2006-10-06 15:00:58 -04:00
mcdx.h
optcd.c [PATCH] drivers/cdrom/*: trivial vsnprintf() conversion 2006-12-07 08:39:35 -08:00
optcd.h
sbpcd.c [PATCH] drivers/cdrom/*: trivial vsnprintf() conversion 2006-12-07 08:39:35 -08:00
sbpcd.h
sjcd.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
sjcd.h
sonycd535.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
sonycd535.h
viocd.c [PATCH] Fix soft lockup with iSeries viocd driver 2007-03-05 07:57:51 -08:00