cciss: factor out core of sendcmd() for a more sane interface
authorStephen M. Cameron <scameron@beardog.cca.cpqcorp.net>
Tue, 2 Jun 2009 12:47:50 +0000 (14:47 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 2 Jun 2009 12:47:50 +0000 (14:47 +0200)
commit4a4b2d7684c66dbd8ed04eb284bc94a78e061d29
treecd53475c9c89a5d833c55bd53bf22d34228ea909
parent53c663ce0f39ba8e8ef652e400b317bc60ac7f19
cciss: factor out core of sendcmd() for a more sane interface

Factor out the core of sendcmd() to provide a simpler interface which
exposes all the error information to the caller and make the original
sendcmd use this new function.  Rationale: The SCSI error handling
routines need to send commands with interrupts turned off, but they also
need access to the full error information.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net>
Cc: Mike Miller <mikem@beardog.cca.cpqcorp.net>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cciss.c