dm-mpath.c (188933ac139a6f8ab06cad369bd0200af947b00d) dm-mpath.c (52b09914af86fa3e728175c1125c91520e437b2f)
1/*
2 * Copyright (C) 2003 Sistina Software Limited.
3 * Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include <linux/device-mapper.h>

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

1622out:
1623 return ret;
1624}
1625
1626static int __pgpath_busy(struct pgpath *pgpath)
1627{
1628 struct request_queue *q = bdev_get_queue(pgpath->path.dev->bdev);
1629
1/*
2 * Copyright (C) 2003 Sistina Software Limited.
3 * Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
4 *
5 * This file is released under the GPL.
6 */
7
8#include <linux/device-mapper.h>

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

1622out:
1623 return ret;
1624}
1625
1626static int __pgpath_busy(struct pgpath *pgpath)
1627{
1628 struct request_queue *q = bdev_get_queue(pgpath->path.dev->bdev);
1629
1630 return dm_underlying_device_busy(q);
1630 return blk_lld_busy(q);
1631}
1632
1633/*
1634 * We return "busy", only when we can map I/Os but underlying devices
1635 * are busy (so even if we map I/Os now, the I/Os will wait on
1636 * the underlying queue).
1637 * In other words, if we want to kill I/Os or queue them inside us
1638 * due to map unavailability, we don't return "busy". Otherwise,

--- 153 unchanged lines hidden ---
1631}
1632
1633/*
1634 * We return "busy", only when we can map I/Os but underlying devices
1635 * are busy (so even if we map I/Os now, the I/Os will wait on
1636 * the underlying queue).
1637 * In other words, if we want to kill I/Os or queue them inside us
1638 * due to map unavailability, we don't return "busy". Otherwise,

--- 153 unchanged lines hidden ---