Thread (13 messages) 13 messages, 4 authors, 2017-02-15

Re: [PATCH 4/4] nvme: support ranged discard requests

From: Keith Busch <hidden>
Date: 2017-02-07 18:34:54
Also in: linux-nvme

On Tue, Feb 07, 2017 at 05:46:58PM +0100, Christoph Hellwig wrote:
quoted hunk ↗ jump to hunk
@@ -1233,6 +1243,8 @@ static void nvme_set_queue_limits(struct nvme_ctrl *ctrl,
 	if (ctrl->vwc & NVME_CTRL_VWC_PRESENT)
 		vwc = true;
 	blk_queue_write_cache(q, vwc, vwc);
+	blk_queue_max_discard_segments(q,
+			PAGE_SIZE / sizeof(struct nvme_dsm_range));
We need to use ctrl->page_size rather than PAGE_SIZE.

Otherwise, this looks really good!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help