block: implement an unprep function corresponding directly to prep

Reviewed-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
This commit is contained in:
James Bottomley
2010-07-01 19:49:17 +09:00
committed by Jens Axboe
parent e597cd09f7
commit 28018c242a
4 changed files with 47 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ static void scsi_unprep_request(struct request *req)
{
struct scsi_cmnd *cmd = req->special;
req->cmd_flags &= ~REQ_DONTPREP;
blk_unprep_request(req);
req->special = NULL;
scsi_put_command(cmd);