Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm: address space issues relative to switch/while/for/...

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>

authored by

Heinz Mauelshagen and committed by
Mike Snitzer
96422281 2f06cd12

+12 -12
+1 -1
drivers/md/dm-bio-prison-v2.c
··· 195 195 196 196 // FIXME: shared locks granted above the lock level could starve this 197 197 if (!cell->shared_count) { 198 - if (cell->exclusive_lock){ 198 + if (cell->exclusive_lock) { 199 199 if (cell->quiesce_continuation) { 200 200 queue_work(prison->wq, cell->quiesce_continuation); 201 201 cell->quiesce_continuation = NULL;
+4 -4
drivers/md/dm-cache-metadata.c
··· 1010 1010 do { \ 1011 1011 if (!cmd_write_lock((cmd))) \ 1012 1012 return -EINVAL; \ 1013 - } while(0) 1013 + } while (0) 1014 1014 1015 1015 #define WRITE_LOCK_VOID(cmd) \ 1016 1016 do { \ 1017 1017 if (!cmd_write_lock((cmd))) \ 1018 1018 return; \ 1019 - } while(0) 1019 + } while (0) 1020 1020 1021 1021 #define WRITE_UNLOCK(cmd) \ 1022 1022 up_write(&(cmd)->root_lock) ··· 1035 1035 do { \ 1036 1036 if (!cmd_read_lock((cmd))) \ 1037 1037 return -EINVAL; \ 1038 - } while(0) 1038 + } while (0) 1039 1039 1040 1040 #define READ_LOCK_VOID(cmd) \ 1041 1041 do { \ 1042 1042 if (!cmd_read_lock((cmd))) \ 1043 1043 return; \ 1044 - } while(0) 1044 + } while (0) 1045 1045 1046 1046 #define READ_UNLOCK(cmd) \ 1047 1047 up_read(&(cmd)->root_lock)
+2 -2
drivers/md/dm-log.c
··· 784 784 int sz = 0; 785 785 struct log_c *lc = log->context; 786 786 787 - switch(status) { 787 + switch (status) { 788 788 case STATUSTYPE_INFO: 789 789 DMEMIT("1 %s", log->type->name); 790 790 break; ··· 809 809 int sz = 0; 810 810 struct log_c *lc = log->context; 811 811 812 - switch(status) { 812 + switch (status) { 813 813 case STATUSTYPE_INFO: 814 814 DMEMIT("3 %s %s %c", log->type->name, lc->log_dev->name, 815 815 lc->log_dev_flush_failed ? 'F' :
+1 -1
drivers/md/dm-mpath.c
··· 1822 1822 if (test_bit(MPATHF_RETAIN_ATTACHED_HW_HANDLER, &m->flags)) 1823 1823 DMEMIT("retain_attached_hw_handler "); 1824 1824 if (m->queue_mode != DM_TYPE_REQUEST_BASED) { 1825 - switch(m->queue_mode) { 1825 + switch (m->queue_mode) { 1826 1826 case DM_TYPE_BIO_BASED: 1827 1827 DMEMIT("queue_mode bio "); 1828 1828 break;
+1 -1
drivers/md/dm-ps-io-affinity.c
··· 162 162 return sz; 163 163 } 164 164 165 - switch(type) { 165 + switch (type) { 166 166 case STATUSTYPE_INFO: 167 167 DMEMIT("%d ", atomic_read(&s->map_misses)); 168 168 break;
+1 -1
drivers/md/dm-ps-round-robin.c
··· 94 94 if (!path) 95 95 DMEMIT("0 "); 96 96 else { 97 - switch(type) { 97 + switch (type) { 98 98 case STATUSTYPE_INFO: 99 99 break; 100 100 case STATUSTYPE_TABLE:
+2 -2
drivers/md/dm-zoned-metadata.c
··· 1430 1430 int idx; 1431 1431 sector_t zone_offset = 0; 1432 1432 1433 - for(idx = 0; idx < dev->nr_zones; idx++) { 1433 + for (idx = 0; idx < dev->nr_zones; idx++) { 1434 1434 struct dm_zone *zone; 1435 1435 1436 1436 zone = dmz_insert(zmd, idx, dev); ··· 1457 1457 { 1458 1458 int idx; 1459 1459 1460 - for(idx = 0; idx < zmd->nr_zones; idx++) { 1460 + for (idx = 0; idx < zmd->nr_zones; idx++) { 1461 1461 struct dm_zone *zone = xa_load(&zmd->zones, idx); 1462 1462 1463 1463 kfree(zone);