aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/block/dcssblk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/block/dcssblk.c')
-rw-r--r--drivers/s390/block/dcssblk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/s390/block/dcssblk.c b/drivers/s390/block/dcssblk.c
index 9481e4a3f76e..2aca79e952b0 100644
--- a/drivers/s390/block/dcssblk.c
+++ b/drivers/s390/block/dcssblk.c
@@ -91,7 +91,7 @@ static struct rw_semaphore dcssblk_devices_sem;
91static void 91static void
92dcssblk_release_segment(struct device *dev) 92dcssblk_release_segment(struct device *dev)
93{ 93{
94 PRINT_DEBUG("segment release fn called for %s\n", dev->bus_id); 94 PRINT_DEBUG("segment release fn called for %s\n", dev_name(dev));
95 kfree(container_of(dev, struct dcssblk_dev_info, dev)); 95 kfree(container_of(dev, struct dcssblk_dev_info, dev));
96 module_put(THIS_MODULE); 96 module_put(THIS_MODULE);
97} 97}
@@ -602,7 +602,8 @@ dcssblk_make_request(struct request_queue *q, struct bio *bio)
602 case SEG_TYPE_SC: 602 case SEG_TYPE_SC:
603 /* cannot write to these segments */ 603 /* cannot write to these segments */
604 if (bio_data_dir(bio) == WRITE) { 604 if (bio_data_dir(bio) == WRITE) {
605 PRINT_WARN("rejecting write to ro segment %s\n", dev_info->dev.bus_id); 605 PRINT_WARN("rejecting write to ro segment %s\n",
606 dev_name(&dev_info->dev));
606 goto fail; 607 goto fail;
607 } 608 }
608 } 609 }