aoeblk.c (2b1333b80885b896807ffb6ccf4bc21d29aa65e0) aoeblk.c (8b9ab62662048a3274361c7e5f64037c2c133e2c)
1/* Copyright (c) 2013 Coraid, Inc. See COPYING for GPL terms. */
2/*
3 * aoeblk.c
4 * block device routines
5 */
6
7#include <linux/kernel.h>
8#include <linux/hdreg.h>

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

422
423 spin_lock_irqsave(&d->lock, flags);
424 WARN_ON(!(d->flags & DEVFL_GD_NOW));
425 d->flags &= ~DEVFL_GD_NOW;
426 spin_unlock_irqrestore(&d->lock, flags);
427 return;
428
429out_disk_cleanup:
1/* Copyright (c) 2013 Coraid, Inc. See COPYING for GPL terms. */
2/*
3 * aoeblk.c
4 * block device routines
5 */
6
7#include <linux/kernel.h>
8#include <linux/hdreg.h>

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

422
423 spin_lock_irqsave(&d->lock, flags);
424 WARN_ON(!(d->flags & DEVFL_GD_NOW));
425 d->flags &= ~DEVFL_GD_NOW;
426 spin_unlock_irqrestore(&d->lock, flags);
427 return;
428
429out_disk_cleanup:
430 blk_cleanup_disk(gd);
430 put_disk(gd);
431err_tagset:
432 blk_mq_free_tag_set(set);
433err_mempool:
434 mempool_destroy(mp);
435err:
436 spin_lock_irqsave(&d->lock, flags);
437 d->flags &= ~DEVFL_GD_NOW;
438 queue_work(aoe_wq, &d->work);

--- 23 unchanged lines hidden ---
431err_tagset:
432 blk_mq_free_tag_set(set);
433err_mempool:
434 mempool_destroy(mp);
435err:
436 spin_lock_irqsave(&d->lock, flags);
437 d->flags &= ~DEVFL_GD_NOW;
438 queue_work(aoe_wq, &d->work);

--- 23 unchanged lines hidden ---