On ons, nov 07, 2007 at 10:57:18 -0800, Arne W�rner wrote:Well, this might sound picky, but it's still a style issue: - Parantheses around return values: static __inline u_int g_raid5_nvalid(struct g_raid5_softc *sc) { u_int i, no; no = 0; for (i = 0; i < sc->sc_ndisks; i++) if (g_raid5_disk_good(sc,i)) no++; - return no; + return (no); } - Proper spacing between variable declaration and function body. struct g_consumer **cpp = cp->private; + if (cpp == NULL) return -1; - Declaration of variables should be in the top of the function. struct g_consumer **cpp = cp->private; if (cpp == NULL) return -1; struct g_consumer *rcp = *cpp; if (rcp == NULL) return -1; int dn = cpp - sc->sc_disks; - Proper indenting when breaking a line, should be 4 spaces etc. All of this can be found in the style(9) manpage, so I'd rather just suggest to go through it and make sure it's satisfied. I've only looked at TOS so far, but I'll look at PP as well to see how it is. Hmm, I'm not sure what you mean about this dead lock, but sounds like a weird thing to having to deadlock because of your filesystem. Maybe this could be solved in another way, or is this not a graid5-thing at all? The general thing is that I don't think one should start optimizing for performance before everything works correctly and having made sure that it improves performance statistically. (I know this isn't a completely new project, but still). First of all, disk I/O is generally much slower than CPU anyway, so I would doubt that having to use one thread would decrease performance noticeably. In my ears, this is a good argument for using one thread only. But then again, this might not be a big deal if it's already there and it's correct. I'm starting to get busier and busier with exams coming up now, but I'll try take a look when I can, but don't expect to much :) Also, as I said, I've only looked at TOS so far. -- Ulf Lilleengen _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
| Washington Odhiambo | Weird Problem with NAT - more details |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Andrew Morton | -mm merge plans for 2.6.23 |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | Re: [GIT]: Networking |
| Denys Fedoryshchenko | thousands of classes, e1000 TX unit hang |
