Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2013 23:37:11 +0000 (UTC)
From:      Jim Harris <jimharris@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252273 - head/sys/dev/nvme
Message-ID:  <201306262337.r5QNbBti007300@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jimharris
Date: Wed Jun 26 23:37:11 2013
New Revision: 252273
URL: http://svnweb.freebsd.org/changeset/base/252273

Log:
  Remove remaining uio-related code.
  
  The nvme_physio() function was removed quite a while ago, which was the
  only user of this uio-related code.
  
  Sponsored by:	Intel
  MFC after:	3 days

Modified:
  head/sys/dev/nvme/nvme_private.h
  head/sys/dev/nvme/nvme_qpair.c

Modified: head/sys/dev/nvme/nvme_private.h
==============================================================================
--- head/sys/dev/nvme/nvme_private.h	Wed Jun 26 23:32:45 2013	(r252272)
+++ head/sys/dev/nvme/nvme_private.h	Wed Jun 26 23:37:11 2013	(r252273)
@@ -145,7 +145,6 @@ struct nvme_request {
 	struct nvme_qpair		*qpair;
 	union {
 		void			*payload;
-		struct uio		*uio;
 		struct bio		*bio;
 	} u;
 	uint32_t			type;
@@ -469,8 +468,6 @@ int	nvme_ns_construct(struct nvme_namesp
 			  struct nvme_controller *ctrlr);
 void	nvme_ns_destruct(struct nvme_namespace *ns);
 
-int	nvme_ns_physio(struct cdev *dev, struct uio *uio, int ioflag);
-
 void	nvme_sysctl_initialize_ctrlr(struct nvme_controller *ctrlr);
 
 void	nvme_dump_command(struct nvme_command *cmd);
@@ -525,19 +522,6 @@ nvme_allocate_request_null(nvme_cb_fn_t 
 }
 
 static __inline struct nvme_request *
-nvme_allocate_request_uio(struct uio *uio, nvme_cb_fn_t cb_fn, void *cb_arg)
-{
-	struct nvme_request *req;
-
-	req = _nvme_allocate_request(cb_fn, cb_arg);
-	if (req != NULL) {
-		req->type = NVME_REQUEST_UIO;
-		req->u.uio = uio;
-	}
-	return (req);
-}
-
-static __inline struct nvme_request *
 nvme_allocate_request_bio(struct bio *bio, nvme_cb_fn_t cb_fn, void *cb_arg)
 {
 	struct nvme_request *req;

Modified: head/sys/dev/nvme/nvme_qpair.c
==============================================================================
--- head/sys/dev/nvme/nvme_qpair.c	Wed Jun 26 23:32:45 2013	(r252272)
+++ head/sys/dev/nvme/nvme_qpair.c	Wed Jun 26 23:37:11 2013	(r252273)
@@ -735,14 +735,6 @@ nvme_payload_map(void *arg, bus_dma_segm
 }
 
 static void
-nvme_payload_map_uio(void *arg, bus_dma_segment_t *seg, int nseg,
-    bus_size_t mapsize, int error)
-{
-
-	nvme_payload_map(arg, seg, nseg, error);
-}
-
-static void
 _nvme_qpair_submit_request(struct nvme_qpair *qpair, struct nvme_request *req)
 {
 	struct nvme_tracker	*tr;
@@ -798,14 +790,6 @@ _nvme_qpair_submit_request(struct nvme_q
 	case NVME_REQUEST_NULL:
 		nvme_qpair_submit_tracker(tr->qpair, tr);
 		break;
-	case NVME_REQUEST_UIO:
-		err = bus_dmamap_load_uio(tr->qpair->dma_tag,
-		    tr->payload_dma_map, req->u.uio, nvme_payload_map_uio,
-		    tr, 0);
-		if (err != 0)
-			nvme_printf(qpair->ctrlr,
-			    "bus_dmamap_load_uio returned 0x%x!\n", err);
-		break;
 #ifdef NVME_UNMAPPED_BIO_SUPPORT
 	case NVME_REQUEST_BIO:
 		KASSERT(req->u.bio->bio_bcount <= qpair->ctrlr->max_xfer_size,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306262337.r5QNbBti007300>