* [PATCH] nvme: use braces for list_for_each_entry() loops
@ 2024-10-20 16:13 Tokunori Ikegami
2024-10-21 0:17 ` Sagi Grimberg
0 siblings, 1 reply; 2+ messages in thread
From: Tokunori Ikegami @ 2024-10-20 16:13 UTC (permalink / raw)
To: linux-nvme; +Cc: Tokunori Ikegami
The loops contain more than a single simple statement.
So just fix to follow the coding-style process.
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
---
drivers/nvme/host/multipath.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c
index 6a15873055b9..a335d3d65edd 100644
--- a/drivers/nvme/host/multipath.c
+++ b/drivers/nvme/host/multipath.c
@@ -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)
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-21 0:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-20 16:13 [PATCH] nvme: use braces for list_for_each_entry() loops Tokunori Ikegami
2024-10-21 0:17 ` Sagi Grimberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox