scsi: explicitly release bidi buffers
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jun 2014 22:53:13 +0000 (16:53 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:12:27 +0000 (12:12 -0600)
commit30db7658e27cd0fb47f8c58802dfb22028087ec3
treefda610e2f45ec3ae9ac821b8b21dcc9033dcdbb3
parent8eda762cdcd3ebb46062d42be1309ad17e09c730
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