]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/target/target_core_iblock.c
target: make iblock_emulate_sync_cache asynchronous
authorChristoph Hellwig <hch@infradead.org>
Fri, 14 Oct 2011 11:29:58 +0000 (07:29 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:21:29 +0000 (03:21 +0000)
commitdf5fa691ce61aedd3e4dbcf960ee44f05b797d8b
tree9acd9f28f37eb697247f6f7256650b03932ede8a
parent6b20fa9aaf0c2f69ee6f9648e20ab2be0206705e
target: make iblock_emulate_sync_cache asynchronous

Do not block the submitting thread when handling a SYNCHRONIZE CACHE command,
but implement it asynchronously by sending the FLUSH command ourself and
calling transport_complete_sync_cache from the completion handler.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_iblock.c