The NFS suspend patch is no great work of art, to say the least.
I suggest we post it to linux-nfs. I expect they will tell us a
better way to do it. But in the surprising event that the patch
actually does something that cannot be done any other way, they
might just take it as is. Or suggest how to modify it into an
interface along the lines of existing interfaces without changing
its basic function.
The patch we really need in mainline is bio-throttle. But we do
not need it in _before_ merging ddsnap, we can just make it part
of the ddsnap patch set. There is no reason our submission to -mm
needs to be an entirely self-contained module.
The biggest thing I don't like about ddsnap structurally is the
need to specify two sockets on the ddsnap start server command. I
think we ought to fix that before submitting.
I think the bio stacking patch set has the best chance of going
into mainline soonest because it provides an easy-to-measure benefit
without much disruption and (once I have completed the rewrite)
cleans up a section of Device Mapper with comments "BEGIN CRUFT ...
END CRUFT", without otherwise changing operation. Unfortunately,
this patch set is not actually needed for ddsnap. But still, it
would be a good start because it is pretty hard to criticize, it
reduces allocations and associated locking a lot.
Daniel
Didn't Jens, umm, have a few issues with the bio-throttle patches? It seems
like those would need to be addressed before that patch goes into -mm.
http://lkml.org/lkml/2007/12/5/346
Following recent kernel development, you might actually shoot for
getting in -next.
Andrew pulls from -next for -mm and wants everything in -next before
going to him.
He (andrew) has said this repeatedly.
http://www.kernel.org/pub/linux/kernel/people/sfr/linux-next/
Also, were the printk patches I submitted forever ago ever merged? Those were
written to fix checkpatch cleanups to help you guys get ddsnap upstream. Has
anyone ran checkpatch on the ddsnap patches at all?
Lets do this 1 step at a time.
--
Jeff Schroeder
Don't drink and derive, alcohol and analysis don't mix.
http://www.digitalprognosis.com
He didn't like adding 4 bytes to struct bio, as I recall that was the
only substantive issue. He also found a bug, which was fixed. All
this needs is a bunch more time sunk in from me, to show everybody the
latest (debugged!) versions, explain the need again, and quantify with
measurements that the new field does not significantly affect memory
use or performance (my bio allocation patch saves significantly more
memory than bio-throttle costs, and alignment wastage wastes way more
memory than bio-throttle costs.
> Following recent kernel development, you might actually shoot for getting in -next.
> Andrew pulls from -next for -mm and wants everything in -next before going to him.
> He (andrew) has said this repeatedly.
> http://www.kernel.org/pub/linux/kernel/people/sfr/linux-next/
Right.
> Also, were the printk patches I submitted forever ago ever merged? Those were
> written to fix checkpatch cleanups to help you guys get ddsnap upstream.
Ahem, no, they fell through the cracks. I think "Ping early, ping often"
applies.
> Has anyone ran checkpatch on the ddsnap patches at all?
The kernel code has gotten scarcely any work at all, for many months. It
does need some lovin. The bright spot there is, it didn't need much work
to stay up and running.
> http://www.digitalprognosis.com/opensource/patches/zumastor/02-zumastor-dm-ddsnap.c-r959-change-printk-to-use-KERN-priorities-v2.patch
>
> Lets do this 1 step at a time.
Thanks Jeff, it looks good.
Hunk #6 FAILED at 1127.
Hunk #7 succeeded at 1259 (offset -51 lines).
Hunk #8 succeeded at 1267 (offset -51 lines).
Hunk #9 FAILED at 1548.
2 out of 9 hunks FAILED -- saving rejects to file dm-ddsnap.c.rej
Fixed and commited.
Daniel
OK. How would you like to try submitting the first one to lkml and the
second one to linux-nfs? I will support you, help proofread the mail,
cheerlead the post, whatever you want.
It is about time that the LKML community started hearing something from
the up-and-coming Jiaying Zhang :-)
Daniel