aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoedev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/aoe/aoedev.c')
-rw-r--r--drivers/block/aoe/aoedev.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c
index f9a1cd9edb77..a1d813ab0d6b 100644
--- a/drivers/block/aoe/aoedev.c
+++ b/drivers/block/aoe/aoedev.c
@@ -18,24 +18,6 @@ static void skbpoolfree(struct aoedev *d);
18static struct aoedev *devlist; 18static struct aoedev *devlist;
19static DEFINE_SPINLOCK(devlist_lock); 19static DEFINE_SPINLOCK(devlist_lock);
20 20
21int
22aoedev_isbusy(struct aoedev *d)
23{
24 struct aoetgt **t, **te;
25 struct frame *f, *e;
26
27 t = d->targets;
28 te = t + NTARGETS;
29 for (; t < te && *t; t++) {
30 f = (*t)->frames;
31 e = f + (*t)->nframes;
32 for (; f < e; f++)
33 if (f->tag != FREETAG)
34 return 1;
35 }
36 return 0;
37}
38
39struct aoedev * 21struct aoedev *
40aoedev_by_aoeaddr(int maj, int min) 22aoedev_by_aoeaddr(int maj, int min)
41{ 23{