diff options
author | James Bottomley <James.Bottomley@suse.de> | 2010-07-01 06:49:17 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-08-07 12:23:47 -0400 |
commit | 28018c242a4ec7017bbbf81d2d3952f820a27118 (patch) | |
tree | 03732bef20d0e4dad30d81d9b9ad9ffcf5a2e41c /drivers/scsi/scsi_lib.c | |
parent | e597cd09f711b28b8466ebdc2f12e55b44fa81e4 (diff) |
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>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 5f1160841b0e..ee836193f531 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -85,7 +85,7 @@ static void scsi_unprep_request(struct request *req) | |||
85 | { | 85 | { |
86 | struct scsi_cmnd *cmd = req->special; | 86 | struct scsi_cmnd *cmd = req->special; |
87 | 87 | ||
88 | req->cmd_flags &= ~REQ_DONTPREP; | 88 | blk_unprep_request(req); |
89 | req->special = NULL; | 89 | req->special = NULL; |
90 | 90 | ||
91 | scsi_put_command(cmd); | 91 | scsi_put_command(cmd); |