ioat1: move descriptor allocation from submit to prep
authorDan Williams <dan.j.williams@intel.com>
Tue, 28 Jul 2009 21:44:04 +0000 (14:44 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 9 Sep 2009 00:29:55 +0000 (17:29 -0700)
The async_tx api assumes that after a successful ->prep a subsequent
->submit will not fail due to a lack of resources.

This also fixes a bug in the allocation failure case.  Previously the
descriptors allocated prior to the allocation failure would not be
returned to the free list.

Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>

No differences found