From: Martin Peschke Date: Fri, 30 Jan 2009 14:46:23 +0000 (+0100) Subject: [SCSI] sg: fix device number in blktrace data X-Git-Tag: v2.6.29-rc6~18^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76e3a19d0691bbfcc559ce77ab3004818fab8f22;p=pandora-kernel.git [SCSI] sg: fix device number in blktrace data Hi, we have run into an issue with blktrace being started for sg devices. Please apply. Thanks, Martin From: Martin Peschke The device number denoting a generic SCSI devices (sg) in a blktrace trace is broken; major and minor are always 0. It looks like sdp->device->sdev_gendev.devt is not initialized properly. The fix below uses other data to make up a valid device number, similar to the way an sg device number is generated for sysfs output. Reported-by: Stefan Raspl Signed-off-by: Martin Peschke Acked-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed