[SCSI] libosd: Free resources in reverse order of allocation
authorBoaz Harrosh <bharrosh@panasas.com>
Tue, 19 Oct 2010 12:21:34 +0000 (14:21 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 26 Oct 2010 15:42:31 +0000 (10:42 -0500)
commitc4df46c49d8677158c7fb070a08e0d386c80205f
tree186445dd72adb59b8a4f3b7ab8051d7e1f787f97
parentec6a0a41b57feb54b3830918a8fb07147c2ee778
[SCSI] libosd: Free resources in reverse order of allocation

At osd_end_request first free the request that might
point to pages, then free these pages. In reverse order
of allocation. For now it's just anal neatness. When we'll
use mempools It'll also pay in performance.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/osd/osd_initiator.c