Skip to contentSkip to conversation

Update misleading comment in cifs_chan_update_iface

PATCH In review Marco Crivellari 3 participants 4 messages Nov 7, 2024 – Nov 26, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update misleading comment in cifs_chan_update_iface

Since commit 8da33fd11c05 ("cifs: avoid deadlocks while updating iface") cifs_chan_update_iface now takes the chan_lock itself, so update the comment accordingly.

---
 fs/smb/client/sess.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
fs/smb/client/sess.c +1 -4
index 3216f786908f..51614a36a100 100644
@@ -359,10 +359,7 @@ cifs_disable_secondary_channels(struct cifs_ses *ses)
 	spin_unlock(&ses->chan_lock);
 }
 
-/*
- * update the iface for the channel if necessary.
- * Must be called with chan_lock held.
- */
+/* update the iface for the channel if necessary. */
 void
 cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server)
 {
Signature · 1 line
2.47.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 22 lines · Marco Crivellari

Since commit 8da33fd11c05 ("cifs: avoid deadlocks while updating iface") cifs_chan_update_iface now takes the chan_lock itself, so update the comment accordingly.

---
fs/smb/client/sess.c | 5 +----

1 file changed, 1 insertion(+), 4 deletions(-)
fs/smb/client/sess.c +1 -4
index 3216f786908f..51614a36a100 100644
@@ -359,10 +359,7 @@ cifs_disable_secondary_channels(struct cifs_ses *ses)
 	spin_unlock(&ses->chan_lock);
 }
 
-/*
- * update the iface for the channel if necessary.
- * Must be called with chan_lock held.
- */
+/* update the iface for the channel if necessary. */
Quoted 4 lines

void
cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server) {

Cheers

#2 lore raw

added to cifs-2.6.git for-next (and added the RB to the other three a well)

Quoted 33 lines · Enzo Matsumiya
Quoted 22 lines · Marco Crivellari

Since commit 8da33fd11c05 ("cifs: avoid deadlocks while updating iface") cifs_chan_update_iface now takes the chan_lock itself, so update the comment accordingly.

---
fs/smb/client/sess.c | 5 +----

1 file changed, 1 insertion(+), 4 deletions(-)
fs/smb/client/sess.c +1 -4
index 3216f786908f..51614a36a100 100644
@@ -359,10 +359,7 @@ cifs_disable_secondary_channels(struct cifs_ses *ses)
      spin_unlock(&ses->chan_lock);
 }
 
-/*
- * update the iface for the channel if necessary.
- * Must be called with chan_lock held.
- */
+/* update the iface for the channel if necessary. */
Quoted 4 lines

void
cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server) {
--

Cheers

Signature · 3 lines
Thanks,

Steve
#3 lore raw

Thank you,

Marco

Quoted 44 lines · Steve French

added to cifs-2.6.git for-next (and added the RB to the other three a well)

Quoted 32 lines · Enzo Matsumiya
Quoted 22 lines · Marco Crivellari

Since commit 8da33fd11c05 ("cifs: avoid deadlocks while updating iface") cifs_chan_update_iface now takes the chan_lock itself, so update the comment accordingly.

---
fs/smb/client/sess.c | 5 +----

1 file changed, 1 insertion(+), 4 deletions(-)
fs/smb/client/sess.c +1 -4
index 3216f786908f..51614a36a100 100644
@@ -359,10 +359,7 @@ cifs_disable_secondary_channels(struct cifs_ses *ses)
      spin_unlock(&ses->chan_lock);
 }
 
-/*
- * update the iface for the channel if necessary.
- * Must be called with chan_lock held.
- */
+/* update the iface for the channel if necessary. */
Quoted 4 lines

void
cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server) {
--

Quoted 1 line

Cheers

--
Thanks,

Steve