.. | .. |
---|
233 | 233 | return; |
---|
234 | 234 | |
---|
235 | 235 | for (i = 0; i < shadow->nr_grants; i++) { |
---|
236 | | - if (unlikely(gnttab_query_foreign_access(shadow->gref[i]))) { |
---|
| 236 | + if (unlikely(!gnttab_try_end_foreign_access(shadow->gref[i]))) { |
---|
237 | 237 | shost_printk(KERN_ALERT, info->host, KBUILD_MODNAME |
---|
238 | 238 | "grant still in use by backend\n"); |
---|
239 | 239 | BUG(); |
---|
240 | 240 | } |
---|
241 | | - gnttab_end_foreign_access(shadow->gref[i], 0, 0UL); |
---|
242 | 241 | } |
---|
243 | 242 | |
---|
244 | 243 | kfree(shadow->sg); |
---|
.. | .. |
---|
696 | 695 | .this_id = -1, |
---|
697 | 696 | .cmd_size = sizeof(struct vscsifrnt_shadow), |
---|
698 | 697 | .sg_tablesize = VSCSIIF_SG_TABLESIZE, |
---|
699 | | - .use_clustering = DISABLE_CLUSTERING, |
---|
700 | 698 | .proc_name = "scsifront", |
---|
701 | 699 | }; |
---|
702 | 700 | |
---|
.. | .. |
---|
1112 | 1110 | case XenbusStateClosed: |
---|
1113 | 1111 | if (dev->state == XenbusStateClosed) |
---|
1114 | 1112 | break; |
---|
1115 | | - /* Missed the backend's Closing state -- fallthrough */ |
---|
| 1113 | + fallthrough; /* Missed the backend's Closing state */ |
---|
1116 | 1114 | case XenbusStateClosing: |
---|
1117 | 1115 | scsifront_disconnect(info); |
---|
1118 | 1116 | break; |
---|