aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoeblk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/aoe/aoeblk.c')
-rw-r--r--drivers/block/aoe/aoeblk.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c
index fa0e8cae6100..a7dbe6f53c14 100644
--- a/drivers/block/aoe/aoeblk.c
+++ b/drivers/block/aoe/aoeblk.c
@@ -132,8 +132,7 @@ aoeblk_make_request(request_queue_t *q, struct bio *bio)
132 d = bio->bi_bdev->bd_disk->private_data; 132 d = bio->bi_bdev->bd_disk->private_data;
133 buf = mempool_alloc(d->bufpool, GFP_NOIO); 133 buf = mempool_alloc(d->bufpool, GFP_NOIO);
134 if (buf == NULL) { 134 if (buf == NULL) {
135 printk(KERN_INFO "aoe: aoeblk_make_request: buf allocation " 135 iprintk("buf allocation failure\n");
136 "failure\n");
137 bio_endio(bio, bio->bi_size, -ENOMEM); 136 bio_endio(bio, bio->bi_size, -ENOMEM);
138 return 0; 137 return 0;
139 } 138 }
@@ -150,8 +149,7 @@ aoeblk_make_request(request_queue_t *q, struct bio *bio)
150 spin_lock_irqsave(&d->lock, flags); 149 spin_lock_irqsave(&d->lock, flags);
151 150
152 if ((d->flags & DEVFL_UP) == 0) { 151 if ((d->flags & DEVFL_UP) == 0) {
153 printk(KERN_INFO "aoe: aoeblk_make_request: device %ld.%ld is not up\n", 152 iprintk("device %ld.%ld is not up\n", d->aoemajor, d->aoeminor);
154 d->aoemajor, d->aoeminor);
155 spin_unlock_irqrestore(&d->lock, flags); 153 spin_unlock_irqrestore(&d->lock, flags);
156 mempool_free(buf, d->bufpool); 154 mempool_free(buf, d->bufpool);
157 bio_endio(bio, bio->bi_size, -ENXIO); 155 bio_endio(bio, bio->bi_size, -ENXIO);
@@ -176,7 +174,7 @@ aoeblk_getgeo(struct block_device *bdev, struct hd_geometry *geo)
176 struct aoedev *d = bdev->bd_disk->private_data; 174 struct aoedev *d = bdev->bd_disk->private_data;
177 175
178 if ((d->flags & DEVFL_UP) == 0) { 176 if ((d->flags & DEVFL_UP) == 0) {
179 printk(KERN_ERR "aoe: aoeblk_ioctl: disk not up\n"); 177 eprintk("disk not up\n");
180 return -ENODEV; 178 return -ENODEV;
181 } 179 }
182 180
@@ -203,8 +201,8 @@ aoeblk_gdalloc(void *vp)
203 201
204 gd = alloc_disk(AOE_PARTITIONS); 202 gd = alloc_disk(AOE_PARTITIONS);
205 if (gd == NULL) { 203 if (gd == NULL) {
206 printk(KERN_ERR "aoe: aoeblk_gdalloc: cannot allocate disk " 204 eprintk("cannot allocate disk structure for %ld.%ld\n",
207 "structure for %ld.%ld\n", d->aoemajor, d->aoeminor); 205 d->aoemajor, d->aoeminor);
208 spin_lock_irqsave(&d->lock, flags); 206 spin_lock_irqsave(&d->lock, flags);
209 d->flags &= ~DEVFL_GDALLOC; 207 d->flags &= ~DEVFL_GDALLOC;
210 spin_unlock_irqrestore(&d->lock, flags); 208 spin_unlock_irqrestore(&d->lock, flags);
@@ -213,8 +211,8 @@ aoeblk_gdalloc(void *vp)
213 211
214 d->bufpool = mempool_create_slab_pool(MIN_BUFS, buf_pool_cache); 212 d->bufpool = mempool_create_slab_pool(MIN_BUFS, buf_pool_cache);
215 if (d->bufpool == NULL) { 213 if (d->bufpool == NULL) {
216 printk(KERN_ERR "aoe: aoeblk_gdalloc: cannot allocate bufpool " 214 eprintk("cannot allocate bufpool for %ld.%ld\n",
217 "for %ld.%ld\n", d->aoemajor, d->aoeminor); 215 d->aoemajor, d->aoeminor);
218 put_disk(gd); 216 put_disk(gd);
219 spin_lock_irqsave(&d->lock, flags); 217 spin_lock_irqsave(&d->lock, flags);
220 d->flags &= ~DEVFL_GDALLOC; 218 d->flags &= ~DEVFL_GDALLOC;