Skip to content

Diskdump Update

Takao Indoh lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Diskdump Updatearch/i386/kernel/nmi.c arch/i386/kernel/reboot.c arch/i386/kernel/traps.c +13 more+1552 -59 replies
2/4Diskdump Updatedrivers/scsi/Kconfig drivers/scsi/Makefile drivers/scsi/scsi.c +6 more+649 -06 replies
3/4Diskdump Updatedrivers/scsi/aic7xxx/aic7xxx_osm.c drivers/scsi/aic7xxx/aic7xxx_osm.h+62 -00 replies
4/4Diskdump Updatedrivers/scsi/aic7xxx/aic79xx_osm.c drivers/scsi/aic7xxx/aic79xx_osm.h+70 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4]Diskdump Update

Hi,

I update the Diskdump patch for kernel 2.6.6. I fixed some codes according to comments from Christoph Hellwig.
http://marc.theaimsgroup.com/?l=linux-kernel&m=108566610109915&w=2

Source code can be downloaded from
http://sourceforge.net/projects/lkdump

Please feel free to comment.

Next week, I'll try the following and release new patch.

1) Change codes around add_timer()/del_timer()/etc.
2) Replace dev_t with block_device
3) Clean code more

Quoted 9 lines · Christoph Hellwig
Quoted 9 lines

+/******************************** Disk dump **************************** *******/

(quoted diff) +7 -0
+#if defined(CONFIG_DISKDUMP) || defined(CONFIG_DISKDUMP_MODULE)
+#undef  add_timer
+#define add_timer       diskdump_add_timer
+#undef  del_timer_sync
+#define del_timer_sync  diskdump_del_timer
+#undef  del_timer
+#define del_timer       diskdump_del_timer
Quoted 8 lines

Review

Quoted 5 lines
(quoted diff) +5 -0
+#undef  mod_timer
+#define mod_timer       diskdump_mod_timer
+
+#define tasklet_schedule        diskdump_tasklet_schedule
+#endif

Yikes. No way in hell we'll place code like this in drivers. This needs to be handled in common code.

Another approach is insering some codes into the core timer and tasklet routines.

For example,

static inline void add_timer(struct timer_list * timer)

{
	if(crashdump_mode())
		__diskdump_add_timer(timer);
	else
		__mod_timer(timer, timer->expires);
}

But I do not want to make common codes dirty...
Please let me know more good idea!

Best Regards,
Takao Indoh