Whamcloud - gitweb
LU-12635 lnet: Fix deceptive indenting on for_each 86/36086/2
authorShaun Tancheff <stancheff@cray.com>
Fri, 6 Sep 2019 17:25:57 +0000 (12:25 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Sep 2019 03:28:01 +0000 (03:28 +0000)
This patch fixes some deceptive indentation not reported by checkpatch
introduced by the previous cleanup

Test-Parameters: trivial
Cray-bug-id: LUS-7690
Signed-off-by: Shaun Tancheff <stancheff@cray.com>
Change-Id: I568637c508c2c5fcb84810e8e6deae2fb082e069
Reviewed-on: https://review.whamcloud.com/36086
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/selftest/rpc.c

index 84ee109..1ca15dc 100644 (file)
@@ -760,19 +760,19 @@ srpc_shutdown_service(struct srpc_service *sv)
               sv->sv_id, sv->sv_name);
 
        cfs_percpt_for_each(scd, i, sv->sv_cpt_data)
-       spin_lock(&scd->scd_lock);
+               spin_lock(&scd->scd_lock);
 
        sv->sv_shuttingdown = 1; /* i.e. no new active RPC */
 
        cfs_percpt_for_each(scd, i, sv->sv_cpt_data)
-       spin_unlock(&scd->scd_lock);
+               spin_unlock(&scd->scd_lock);
 
        cfs_percpt_for_each(scd, i, sv->sv_cpt_data) {
                spin_lock(&scd->scd_lock);
 
                /* schedule in-flight RPCs to notice the shutdown */
                list_for_each_entry(rpc, &scd->scd_rpc_active, srpc_list)
-               swi_schedule_workitem(&rpc->srpc_wi);
+                       swi_schedule_workitem(&rpc->srpc_wi);
 
                spin_unlock(&scd->scd_lock);
 
@@ -780,7 +780,7 @@ srpc_shutdown_service(struct srpc_service *sv)
                 * touches scd_buf_posted now
                 */
                list_for_each_entry(buf, &scd->scd_buf_posted, buf_list)
-               LNetMDUnlink(buf->buf_mdh);
+                       LNetMDUnlink(buf->buf_mdh);
        }
 }