dm.c (09c2d53101da87f5ab4084643d2f8c718b3ab3cf) dm.c (52b09914af86fa3e728175c1125c91520e437b2f)
1/*
2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm.h"

--- 1992 unchanged lines hidden (view full) ---

2001 goto out;
2002
2003delay_and_out:
2004 blk_delay_queue(q, HZ / 10);
2005out:
2006 dm_put_live_table(md, srcu_idx);
2007}
2008
1/*
2 * Copyright (C) 2001, 2002 Sistina Software (UK) Limited.
3 * Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include "dm.h"

--- 1992 unchanged lines hidden (view full) ---

2001 goto out;
2002
2003delay_and_out:
2004 blk_delay_queue(q, HZ / 10);
2005out:
2006 dm_put_live_table(md, srcu_idx);
2007}
2008
2009int dm_underlying_device_busy(struct request_queue *q)
2010{
2011 return blk_lld_busy(q);
2012}
2013EXPORT_SYMBOL_GPL(dm_underlying_device_busy);
2014
2015static int dm_lld_busy(struct request_queue *q)
2016{
2017 int r;
2018 struct mapped_device *md = q->queuedata;
2019 struct dm_table *map = dm_get_live_table_fast(md);
2020
2021 if (!map || test_bit(DMF_BLOCK_IO_FOR_SUSPEND, &md->flags))
2022 r = 1;

--- 1329 unchanged lines hidden ---
2009static int dm_lld_busy(struct request_queue *q)
2010{
2011 int r;
2012 struct mapped_device *md = q->queuedata;
2013 struct dm_table *map = dm_get_live_table_fast(md);
2014
2015 if (!map || test_bit(DMF_BLOCK_IO_FOR_SUSPEND, &md->flags))
2016 r = 1;

--- 1329 unchanged lines hidden ---