aoeblk.c (11e4afb49b7fa1fc8e1ffd850c1806dd86a08204) aoeblk.c (7b6d91daee5cac6402186ff224c3af39d79f4a0e)
1/* Copyright (c) 2007 Coraid, Inc. See COPYING for GPL terms. */
2/*
3 * aoeblk.c
4 * block device routines
5 */
6
7#include <linux/hdreg.h>
8#include <linux/blkdev.h>

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

168 return 0;
169 }
170 d = bio->bi_bdev->bd_disk->private_data;
171 if (d == NULL) {
172 printk(KERN_ERR "aoe: bd_disk->private_data is NULL\n");
173 BUG();
174 bio_endio(bio, -ENXIO);
175 return 0;
1/* Copyright (c) 2007 Coraid, Inc. See COPYING for GPL terms. */
2/*
3 * aoeblk.c
4 * block device routines
5 */
6
7#include <linux/hdreg.h>
8#include <linux/blkdev.h>

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

168 return 0;
169 }
170 d = bio->bi_bdev->bd_disk->private_data;
171 if (d == NULL) {
172 printk(KERN_ERR "aoe: bd_disk->private_data is NULL\n");
173 BUG();
174 bio_endio(bio, -ENXIO);
175 return 0;
176 } else if (bio_rw_flagged(bio, BIO_RW_BARRIER)) {
176 } else if (bio->bi_rw & REQ_HARDBARRIER) {
177 bio_endio(bio, -EOPNOTSUPP);
178 return 0;
179 } else if (bio->bi_io_vec == NULL) {
180 printk(KERN_ERR "aoe: bi_io_vec is NULL\n");
181 BUG();
182 bio_endio(bio, -ENXIO);
183 return 0;
184 }

--- 144 unchanged lines hidden ---
177 bio_endio(bio, -EOPNOTSUPP);
178 return 0;
179 } else if (bio->bi_io_vec == NULL) {
180 printk(KERN_ERR "aoe: bi_io_vec is NULL\n");
181 BUG();
182 bio_endio(bio, -ENXIO);
183 return 0;
184 }

--- 144 unchanged lines hidden ---