1. A method for avoiding runtime resource deadlock in a RAID system, said method comprising: defining a plurality of resources, said plurality of resources including a plurality of I/O tasks; assigning a hierarchical order to said plurality of resources; dynamically allocating a first resource for a first I/O task when said first I/O task is commenced; and preventing said dynamic allocation from allocating a second resource to said first I/O task higher in said hierarchical order than said first resource.