Module Name: src Committed By: mlelstv Date: Sun Aug 16 18:00:03 UTC 2015
Modified Files: src/sys/arch/xen/xen: xbd_xenbus.c src/sys/dev: cgd.c dksubr.c dkvar.h ld.c src/sys/sys: disk.h param.h Log Message: Two changes to the dksubr interface. - d_diskstart callback now processes a single buffer only. The new wrapper function dk_start processes the queue, performs other buffer handling and also provides locking for the the data structures. - add d_discard callback to handle device specific function inside the new dk_discard helper function. Replace splbio with mutex to protect queue and disk structure. Refactor common code in dk_strategy and dk_discard into dk_translate. Adjust and simplify ld(4), cgd(4) and xbd(4) drivers accordingly. ld(4) now becomes MP_SAFE. Bump kernel version. To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72 src/sys/arch/xen/xen/xbd_xenbus.c cvs rdiff -u -r1.98 -r1.99 src/sys/dev/cgd.c cvs rdiff -u -r1.70 -r1.71 src/sys/dev/dksubr.c cvs rdiff -u -r1.20 -r1.21 src/sys/dev/dkvar.h cvs rdiff -u -r1.88 -r1.89 src/sys/dev/ld.c cvs rdiff -u -r1.64 -r1.65 src/sys/sys/disk.h cvs rdiff -u -r1.482 -r1.483 src/sys/sys/param.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.