1. A method, comprising: receiving, by a controller, a request to perform a release space operation; determining that a new discard scan has to be performed on a cache, in response to the received request to perform the release space operation; and determining how many task control blocks are to be allocated to the perform the new discard scan, based on how many task control blocks have already been allocated for performing one or more discard scans that are already in progress.