block: implement an unprep function corresponding directly to prep

Reviewed-by: FUJITA Tomonori <[email protected]>

Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
James Bottomley 2010-07-01 19:49:17 +09:00 • committed by Jens Axboe
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);