diff options
author | Jens Axboe <axboe@suse.de> | 2006-05-11 06:20:16 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-11 19:38:59 (GMT) |
commit | dac07ec121de66b6be988b14ae2cd9ce45357b21 (patch) | |
tree | 95359f17d0857fd52f399cef072097523227d032 /drivers/scsi/wd33c93.c | |
parent | f358166a9405e4f1d8e50d8f415c26d95505b6de (diff) | |
download | linux-fsl-qoriq-dac07ec121de66b6be988b14ae2cd9ce45357b21.tar.xz |
[BLOCK] limit request_fn recursion
Don't recurse back into the driver even if the unplug threshold is met,
when the driver asks for a requeue. This is both silly from a logical
point of view (requeues typically happen due to driver/hardware
shortage), and also dangerous since we could hit an endless request_fn
-> requeue -> unplug -> request_fn loop and crash on stack overrun.
Also limit blk_run_queue() to one level of recursion, similar to how
blk_start_queue() works.
This patch fixed a real problem with SLES10 and lpfc, and it could hit
any SCSI lld that returns non-zero from it's ->queuecommand() handler.
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi/wd33c93.c')
0 files changed, 0 insertions, 0 deletions