[SCSI] libosd: write/read_sg_kern API
This is a trivial addition to the SG API that can receive kernel pointers. It is only used by the out-of-tree test module. So it's immediate need is questionable. For maintenance ease it might just get in, as it's very small. John. do you need this in the Kernel, or is it only for osd_ktest.ko? Signed-off-by: John A. Chandy <john.chandy@uconn.edu> Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:

committed by
James Bottomley

parent
e96e72c45a
commit
6dd1d8a795
@@ -455,6 +455,13 @@ int osd_req_write_sg(struct osd_request *or,
|
||||
int osd_req_read_sg(struct osd_request *or,
|
||||
const struct osd_obj_id *obj, struct bio *bio,
|
||||
const struct osd_sg_entry *sglist, unsigned numentries);
|
||||
int osd_req_write_sg_kern(struct osd_request *or,
|
||||
const struct osd_obj_id *obj, void **buff,
|
||||
const struct osd_sg_entry *sglist, unsigned numentries);
|
||||
int osd_req_read_sg_kern(struct osd_request *or,
|
||||
const struct osd_obj_id *obj, void **buff,
|
||||
const struct osd_sg_entry *sglist, unsigned numentries);
|
||||
|
||||
/*
|
||||
* Root/Partition/Collection/Object Attributes commands
|
||||
*/
|
||||
|
Reference in New Issue
Block a user