diff options
author | Jens Axboe <axboe@suse.de> | 2006-05-11 08:20:16 +0200 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2006-05-20 15:00:31 -0700 |
commit | 7984c7b5a2ccd821caeab3d751e0941ca5e8b8d1 (patch) | |
tree | 8efd3960a7f1b6d1aad1353deb88ae2cbc5bc67f /include/asm-ia64/poll.h | |
parent | 0cf72aa68c30845d4ac076909af4edd6e4cdaab9 (diff) | |
download | linux-rt-7984c7b5a2ccd821caeab3d751e0941ca5e8b8d1.tar.gz |
[PATCH] 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'include/asm-ia64/poll.h')
0 files changed, 0 insertions, 0 deletions