Merge tag 'nfs-for-5.14-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[linux-2.6-microblaze.git] / drivers / infiniband / hw / hfi1 / sdma.c
index 1fcc6e9..eb15c31 100644 (file)
@@ -3130,7 +3130,7 @@ int ext_coal_sdma_tx_descs(struct hfi1_devdata *dd, struct sdma_txreq *tx,
                }
 
                if (type == SDMA_MAP_PAGE) {
-                       kvaddr = kmap(page);
+                       kvaddr = kmap_local_page(page);
                        kvaddr += offset;
                } else if (WARN_ON(!kvaddr)) {
                        __sdma_txclean(dd, tx);
@@ -3140,7 +3140,7 @@ int ext_coal_sdma_tx_descs(struct hfi1_devdata *dd, struct sdma_txreq *tx,
                memcpy(tx->coalesce_buf + tx->coalesce_idx, kvaddr, len);
                tx->coalesce_idx += len;
                if (type == SDMA_MAP_PAGE)
-                       kunmap(page);
+                       kunmap_local(kvaddr);
 
                /* If there is more data, return */
                if (tx->tlen - tx->coalesce_idx)