Re: [PATCH 5/5] staging/rdma/hfi1: Add page lock limit check for SDMA requests

2015-12-07 Thread Dan Carpenter
On Wed, Dec 02, 2015 at 03:56:27PM -0500, ira.we...@intel.com wrote: > - for (i = tx->idx; i >= 0; i--) { > - if (tx->iovecs[i].flags & TXREQ_FLAGS_IOVEC_LAST_PKT) > - unpin_vector_pages(tx->iovecs[i].vec); > + /* > + * If we

[PATCH 5/5] staging/rdma/hfi1: Add page lock limit check for SDMA requests

2015-12-02 Thread ira . weiny
From: Mitko Haralanov The driver pins pages on behalf of user processes in two separate instances - when the process has submitted a SDMA transfer and when the process programs an expected receive buffer. When pinning pages, the driver is required to observe the