]> git.hungrycats.org Git - linux/commit
[PATCH] fix scsi oops on failed sg table allocation
authorJens Axboe <axboe@suse.de>
Fri, 17 May 2002 17:02:37 +0000 (10:02 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 17 May 2002 17:02:37 +0000 (10:02 -0700)
commit7dbe32bed2b9103e744ced54d3f3076e5f01028e
treebfad577254c871234591443ba45358ee3e08d5e4
parent76e4b1f8c0f00247cab2014471a8c21429355fcc
[PATCH] fix scsi oops on failed sg table allocation

This patch fixes the deliberate BUG_ON() on failed sgtable allocations.
I left that in because I was too lazy to fix it at the time...

Basically make scsi_init_io() return 0 on failure (like before) but this
time allow us to recover. scsi_init_io() will end_request on a fatal
condition. So now just mark the device/host as starved if needed, and
leave the request at the front of the queue for next service.
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_merge.c