commit | 7dbe32bed2b9103e744ced54d3f3076e5f01028e | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@suse.de> | Fri May 17 10:02:37 2002 -0700 |
committer | Linus Torvalds <torvalds@home.transmeta.com> | Fri May 17 10:02:37 2002 -0700 |
tree | bfad577254c871234591443ba45358ee3e08d5e4 | |
parent | 76e4b1f8c0f00247cab2014471a8c21429355fcc [diff] |
[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.