scsi: explicitly release bidi buffers
authorChristoph Hellwig <hch@lst.de>
Thu, 1 May 2014 14:51:02 +0000 (16:51 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 10:33:41 +0000 (12:33 +0200)
Instead of trying to guess when we have a BIDI buffer in scsi_release_buffers
add a function to explicitly free the BIDI ressoures in the one place that
handles them.  This avoids needing a special __scsi_release_buffers for the
case where we already have freed the request as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
drivers/scsi/scsi_lib.c

Simple merge