Data processing method and storage gateway

Disclosed are a data processing method and a storage gateway. The method comprises the following data encryption steps: a storage gateway reads to encrypt unencrypted data in a storage unit part by parts under the management of the storage gateway, and writes the encrypted data back to the storage unit part by parts; and further, the data encryption steps can also comprise the following business response steps: receiving a read-write operation on the storage unit, and if an operation object of the read-write operation is a data block which is being currently encrypted, delaying a response to the read-write operation until the encryption of the data block is completed.