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)
commitc682adf3e1176095a665716a0b62fead8f4b8f5c
tree673170d74351781c848f0436fc545e7e12a535f8
parentd6d211db37e75de2ddc3a4f979038c40df7cc79c
scsi: explicitly release bidi buffers

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