nvme: use braces for list_for_each_entry() loops
PATCH 1/1 nvme: use braces for list_for_each_entry() loops
The loops contain more than a single simple statement. So just fix to follow the coding-style process.
Signed-off-by Tokunori Ikegami <[email protected]>
--- drivers/nvme/host/multipath.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/nvme/host/multipath.c +6 -3
@@ -58,9 +58,10 @@ void nvme_mpath_unfreeze(struct nvme_subsystem *subsys)struct nvme_ns_head *h;lockdep_assert_held (&subsys->lock); -list_for_each_entry (h, &subsys->nsheads, entry) +list_for_each_entry (h, &subsys->nsheads, entry) {if (h->disk)blk_mq_unfreeze_queue (h->disk->queue); + } }void nvme_mpath_wait_freeze (struct nvme_subsystem *subsys)
@@ -68,9 +69,10 @@ void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys)struct nvme_ns_head *h;lockdep_assert_held (&subsys->lock); -list_for_each_entry (h, &subsys->nsheads, entry) +list_for_each_entry (h, &subsys->nsheads, entry) {if (h->disk)blk_mq_freeze_queue_wait (h->disk->queue); + } }void nvme_mpath_start_freeze (struct nvme_subsystem *subsys)
@@ -78,9 +80,10 @@ void nvme_mpath_start_freeze(struct nvme_subsystem *subsys)struct nvme_ns_head *h;lockdep_assert_held (&subsys->lock); -list_for_each_entry (h, &subsys->nsheads, entry) +list_for_each_entry (h, &subsys->nsheads, entry) {if (h->disk)blk_freeze_queue_start (h->disk->queue); + } }void nvme_failover_req (struct request *req)
Signature · 1 line
2.45.2
ok
Reviewed-by Sagi Grimberg <[email protected]>