From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752596Ab1HDHYO (ORCPT ); Thu, 4 Aug 2011 03:24:14 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]:31895 "EHLO acsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751718Ab1HDHYK (ORCPT ); Thu, 4 Aug 2011 03:24:10 -0400 Message-ID: <4E3A48FD.8060807@oracle.com> Date: Thu, 04 Aug 2011 15:23:41 +0800 From: Joe Jin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 MIME-Version: 1.0 To: Joe Jin CC: Daniel Stodden , Jens Axboe , Konrad Rzeszutek Wilk , Annie Li , Ian Campbell , Kurt C Hackel , Greg Marsden , "xen-devel@lists.xensource.com" , "linux-kernel@vger.kernel.org" Subject: [PATCH -v3 1/3] xen-blkback: add remove_requested to xen_blkif and some declares References: <4E3A486D.7060506@oracle.com> In-Reply-To: <4E3A486D.7060506@oracle.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4E3A4914.0077:SCFMA922111,ss=1,re=-4.000,fgs=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add remove_requested to xen_blkif and some declares. Signed-off-by: Joe Jin Cc: Daniel Stodden Cc: Jens Axboe Cc: Konrad Rzeszutek Wilk Cc: Annie Li Cc: Ian Campbell --- drivers/block/xen-blkback/common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/block/xen-blkback/common.h b/drivers/block/xen-blkback/common.h index 9e40b28..acda757 100644 --- a/drivers/block/xen-blkback/common.h +++ b/drivers/block/xen-blkback/common.h @@ -49,6 +49,7 @@ pr_debug(DRV_PFX "(%s:%d) " fmt ".\n", \ __func__, __LINE__, ##args) +#define WPRINTK(fmt, args...) printk(KERN_WARNING "xen-blkback: " fmt, ##args) /* Not a real protocol. Used to generate ring structs which contain * the elements common to all protocols only. This way we get a @@ -145,6 +146,7 @@ struct xen_blkif { /* Back pointer to the backend_info. */ struct backend_info *be; /* Private fields. */ + bool remove_requested; spinlock_t blk_ring_lock; atomic_t refcnt; @@ -198,6 +200,9 @@ int xen_blkbk_flush_diskcache(struct xenbus_transaction xbt, struct xenbus_device *xen_blkbk_xenbus(struct backend_info *be); +void xen_vbd_sync(struct xen_vbd *vbd); +void xen_blkback_close(struct xen_blkif *blkif); + static inline void blkif_get_x86_32_req(struct blkif_request *dst, struct blkif_x86_32_request *src) {