login
Header Space

 
 

[PATCH 4/4] firewire: fw-sbp2: reduce log noise

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux1394-devel@...>
Cc: <linux-kernel@...>
Date: Thursday, February 28, 2008 - 3:53 pm

The block/unblock logic is now sufficiently tested.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---

To be postponed after 2.6.25.

 drivers/firewire/fw-sbp2.c |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

Index: linux/drivers/firewire/fw-sbp2.c
===================================================================
--- linux.orig/drivers/firewire/fw-sbp2.c
+++ linux/drivers/firewire/fw-sbp2.c
@@ -687,10 +687,8 @@ static void sbp2_conditionally_block(str
 	if (!tgt->dont_block && !lu->blocked &&
 	    lu->generation != card->generation) {
 		lu->blocked = true;
-		if (++tgt->blocked == 1) {
+		if (++tgt->blocked == 1)
 			scsi_block_requests(shost);
-			fw_notify("blocked %s\n", lu->tgt->bus_id);
-		}
 	}
 	spin_unlock_irqrestore(&card->lock, flags);
 }
@@ -717,10 +715,8 @@ static void sbp2_conditionally_unblock(s
 	}
 	spin_unlock_irqrestore(&card->lock, flags);
 
-	if (unblock) {
+	if (unblock)
 		scsi_unblock_requests(shost);
-		fw_notify("unblocked %s\n", lu->tgt->bus_id);
-	}
 }
 
 /*

-- 
Stefan Richter
-=====-==--- --=- ===--
http://arcgraph.de/sr/

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] firewire: trivial fw-sbp2 updates, Stefan Richter, (Thu Feb 28, 3:50 pm)
[PATCH 4/4] firewire: fw-sbp2: reduce log noise, Stefan Richter, (Thu Feb 28, 3:53 pm)
[PATCH 3/4] firewire: fw-sbp2: remove unnecessary memset, Stefan Richter, (Thu Feb 28, 3:52 pm)
[PATCH 2/4] firewire: fw-sbp2: simplify some macros, Stefan Richter, (Thu Feb 28, 3:52 pm)
speck-geostationary