ide: use blk_rq_init() to initialize the request
This converts ide to use blk_rq_init 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> Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
committed by
Jens Axboe
parent
4f54eec831
commit
e7b241a771
@ -1550,8 +1550,7 @@ irqreturn_t ide_intr (int irq, void *dev_id)
|
||||
|
||||
void ide_init_drive_cmd (struct request *rq)
|
||||
{
|
||||
memset(rq, 0, sizeof(*rq));
|
||||
rq->ref_count = 1;
|
||||
blk_rq_init(NULL, rq);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(ide_init_drive_cmd);
|
||||
|
Reference in New Issue
Block a user