Commit 1521848c authored by Steven Whitehouse's avatar Steven Whitehouse Committed by David Teigland

dlm: remove kmap/kunmap

The pages used in lowcomms are not highmem, so kmap is not necessary.

Cc: Christine Caulfield <ccaulfie@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent cd8e4679
...@@ -824,7 +824,6 @@ static void sctp_init_assoc(struct connection *con) ...@@ -824,7 +824,6 @@ static void sctp_init_assoc(struct connection *con)
len = e->len; len = e->len;
offset = e->offset; offset = e->offset;
spin_unlock(&con->writequeue_lock); spin_unlock(&con->writequeue_lock);
kmap(e->page);
/* Send the first block off the write queue */ /* Send the first block off the write queue */
iov[0].iov_base = page_address(e->page)+offset; iov[0].iov_base = page_address(e->page)+offset;
...@@ -855,7 +854,6 @@ static void sctp_init_assoc(struct connection *con) ...@@ -855,7 +854,6 @@ static void sctp_init_assoc(struct connection *con)
if (e->len == 0 && e->users == 0) { if (e->len == 0 && e->users == 0) {
list_del(&e->list); list_del(&e->list);
kunmap(e->page);
free_entry(e); free_entry(e);
} }
spin_unlock(&con->writequeue_lock); spin_unlock(&con->writequeue_lock);
...@@ -1204,8 +1202,6 @@ void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc) ...@@ -1204,8 +1202,6 @@ void *dlm_lowcomms_get_buffer(int nodeid, int len, gfp_t allocation, char **ppc)
if (e) { if (e) {
got_one: got_one:
if (users == 0)
kmap(e->page);
*ppc = page_address(e->page) + offset; *ppc = page_address(e->page) + offset;
return e; return e;
} }
...@@ -1234,7 +1230,6 @@ void dlm_lowcomms_commit_buffer(void *mh) ...@@ -1234,7 +1230,6 @@ void dlm_lowcomms_commit_buffer(void *mh)
if (users) if (users)
goto out; goto out;
e->len = e->end - e->offset; e->len = e->end - e->offset;
kunmap(e->page);
spin_unlock(&con->writequeue_lock); spin_unlock(&con->writequeue_lock);
if (!test_and_set_bit(CF_WRITE_PENDING, &con->flags)) { if (!test_and_set_bit(CF_WRITE_PENDING, &con->flags)) {
...@@ -1273,7 +1268,6 @@ static void send_to_sock(struct connection *con) ...@@ -1273,7 +1268,6 @@ static void send_to_sock(struct connection *con)
offset = e->offset; offset = e->offset;
BUG_ON(len == 0 && e->users == 0); BUG_ON(len == 0 && e->users == 0);
spin_unlock(&con->writequeue_lock); spin_unlock(&con->writequeue_lock);
kmap(e->page);
ret = 0; ret = 0;
if (len) { if (len) {
...@@ -1295,7 +1289,6 @@ static void send_to_sock(struct connection *con) ...@@ -1295,7 +1289,6 @@ static void send_to_sock(struct connection *con)
if (e->len == 0 && e->users == 0) { if (e->len == 0 && e->users == 0) {
list_del(&e->list); list_del(&e->list);
kunmap(e->page);
free_entry(e); free_entry(e);
continue; continue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment