diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-04-29 09:54:37 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-04-29 14:48:55 +0200 |
commit | 4f54eec8311c3325888c29ce8e4496daf4dbe624 (patch) | |
tree | e1bdf703cc0a5f91651216f6ae37cb34bd54cc6c /drivers/scsi | |
parent | 2a4aa30c5f967eb6ae874c67fa6fceeee84815f9 (diff) | |
download | kernel_samsung_aries-4f54eec8311c3325888c29ce8e4496daf4dbe624.zip kernel_samsung_aries-4f54eec8311c3325888c29ce8e4496daf4dbe624.tar.gz kernel_samsung_aries-4f54eec8311c3325888c29ce8e4496daf4dbe624.tar.bz2 |
block: use blk_rq_init() to initialize the request
Any path needs to call it to initialize the request.
This is a preparation for large command support, which needs to
initialize the request in a proper way (that is, just doing a memset()
will not work).
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/scsi_error.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 221f31e..1eaba6c 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -1771,6 +1771,7 @@ scsi_reset_provider(struct scsi_device *dev, int flag) unsigned long flags; int rtn; + blk_rq_init(NULL, &req); scmd->request = &req; memset(&scmd->eh_timeout, 0, sizeof(scmd->eh_timeout)); |