Received: from eggs.gnu.org ([2001:4830:134:3::10]:45322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQeQO-0002bA-6J for qemu-devel@nongnu.org; Thu, 29 Jun 2017 14:44:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQeQN-0005PR-CL for qemu-devel@nongnu.org; Thu, 29 Jun 2017 14:44:20 -0400 From: Manos Pitsidianakis Date: Thu, 29 Jun 2017 21:43:17 +0300 Message-Id: <20170629184320.7151-1-el13635@mail.ntua.gr> Subject: [Qemu-devel] [PATCH v2 0/3] block: block driver callbacks fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: qemu-block , Stefan Hajnoczi , Alberto Garcia , Kevin Wolf , Max Reitz This series makes implementing some of the bdrv_* callbacks easier for block drivers by passing requests to bs->file if bs->drv doesn't implement it instead of failing, and adding default bdrv_co_get_block_status() implementations. This is based against Kevin Wolf's block branch, commit 0dd2ec6bc46bd93ea0b9df602962883417f31400 v2: do not pass to bs->file if bs->drv is NULL move bs->file check outside of bdrv_inc_in_flight() area in bdrv_co_ioctl() new patch: remove duplicate code from block/raw-format.c Manos Pitsidianakis (3): block: pass bdrv_* methods to bs->file by default block: use defaults of bdrv_* callbacks in raw block: add default implementations for bdrv_co_get_block_status() block.c | 27 +++++++++++++++++++++++++-- block/blkdebug.c | 12 +----------- block/commit.c | 12 +----------- block/io.c | 29 +++++++++++++++++++++++++++++ block/mirror.c | 12 +----------- block/raw-format.c | 32 +------------------------------- include/block/block_int.h | 16 ++++++++++++++++ 7 files changed, 74 insertions(+), 66 deletions(-) -- 2.11.0