content='cgit v1.2.3-54-g00ecf'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Höppner <hoeppner@linux.vnet.ibm.com>2016-10-07 17:21:24 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-10-28 10:09:03 +0200
commit1081f3a70b74b90b6db60eb1ac6cc3c480d62d57 (patch)
treeaa5f65286c5cbd566f27234d09c7386212697dad
parentce7a788f4d5aba3361572067c7ac7c4e85d4a070 (diff)
s390/dasd: Make use of dasd_set_feature() more often
When setting certain attributes, we actually set the according feature flag. Do this by using dasd_set_feature() at a few occurrences and remove duplicate code. In dasd_set_feature() dasd_find_busid() is used to retrieve the devmap for the device in question. Combined with the change above, this would require the device to be set online at least once so that a devmap is being created. Change that by using dasd_devmap_from_cdev() instead, which uses dasd_find_busid() first and will create a devmap accordingly if there is none yet. Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>