[SCSI] scsi_debug: error processing
authorDouglas Gilbert <dougg@torque.net>
Fri, 5 Jan 2007 05:05:25 +0000 (00:05 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 13 Jan 2007 19:52:37 +0000 (13:52 -0600)
commit6f3cbf552e0557a463ad421f07b2e873a608406f
tree150e99a4d625ede99cb8356932f85ae726510304
parentd780c3bf2150264947870bb68c057c26c2aff7cc
[SCSI] scsi_debug: error processing

After discussions in the thread titled:
    [PATCH] scsi_debug: illegal blocking memory allocation
here is a patch containing the discussed fix and some other
fixes and additions. The patch is against lk 2.6.20-rc3 .
The version is bumped to 1.81 .

ChangeLog:
  - Change several GFP_KERNEL allocations to GFP_ATOMIC
    as they can be called from queuecommand() context
  - check above allocation returns and if out of memory
    report DID_REQUEUE in two cases, DID_NO_CONNECT in
    another, and fail slave configure() in another
  - add support for WRITE BUFFER command
  - add aborted_command error injection support
    (opts mask 0x10), similar mechanism to
    recovered_error injection.

Signed-off-by: Douglas Gilbert <dougg@torque.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_debug.c
This page took 0.066301 seconds and 5 git commands to generate.