]> git.karo-electronics.de Git - linux-beck.git/commit
[PATCH] libata: make the owner of a qc responsible for freeing it
authorTejun Heo <htejun@gmail.com>
Mon, 23 Jan 2006 04:09:36 +0000 (13:09 +0900)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 27 Jan 2006 03:33:49 +0000 (22:33 -0500)
commit77853bf2b48e34449e826a9ef4df5ea0dbe947f4
treeb46a186c141c61f05352b7a1199b2940fd9a2065
parent4ba946e9d8e10fada7bbce527f6ea05842592e06
[PATCH] libata: make the owner of a qc responsible for freeing it

qc used to be freed automatically on command completion.  However, as
a qc can carry information about its completion status, it can be
useful to its owner/issuer after command completion.  This patch makes
freeing qc responsibility of its owner.  This simplifies
ata_exec_internal() and makes command turn-around for atapi request
sensing less hackish.

This change was originally suggested by Jeff Garzik.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/scsi/libata-core.c
drivers/scsi/libata-scsi.c
include/linux/libata.h