Skip to contentSkip to conversation

remove unbalanced kunmap

PATCH In review Benoît Canet 3 participants 6 messages Jun 24, 2015 – Jun 25, 2015 Ceph common code (libceph)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove unbalanced kunmap

Spotted via visual inspection of the code.

Benoît Canet (1):
libceph: Remove spurious kunmap() of the zero page

 net/ceph/messenger.c | 1 -
 1 file changed, 1 deletion(-)
Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

PATCH 1/1 libceph: Remove spurious kunmap() of the zero page

ceph_tcp_sendpage already does the work of mapping/unmapping the zero page if needed.

---
 net/ceph/messenger.c | 1 -
 1 file changed, 1 deletion(-)
net/ceph/messenger.c +0 -1
index 967080a..38f06a4 100644
@@ -278,7 +278,6 @@ static void _ceph_msgr_exit(void)
 	ceph_msgr_slab_exit();
 
 	BUG_ON(zero_page == NULL);
-	kunmap(zero_page);
 	page_cache_release(zero_page);
 	zero_page = NULL;
 }
Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reviewed-by on v1 1/1
#2 lore raw

Re: [PATCH] libceph: Remove spurious kunmap() of the zero page

Quoted 4 lines · Benoît Canet

ceph_tcp_sendpage already does the work of mapping/unmapping the zero page if needed.

This looks good.

Quoted 10 lines
---
  net/ceph/messenger.c | 1 -
  1 file changed, 1 deletion(-)
net/ceph/messenger.c +0 -0
index 967080a..38f06a4 100644

net/ceph/messenger.c static void _ceph_msgr_exit(void) · line 283

Quoted 7 lines
net/ceph/messenger.c +0 -1
@@ -278,7 +278,6 @@ static void _ceph_msgr_exit(void)
  	ceph_msgr_slab_exit();
 
  	BUG_ON(zero_page == NULL);
-	kunmap(zero_page);
  	page_cache_release(zero_page);
  	zero_page = NULL;
  }

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer Applied
#3 lore raw

Re: [PATCH] libceph: Remove spurious kunmap() of the zero page

Quoted 11 lines · Alex Elder
Quoted 5 lines · Benoît Canet

ceph_tcp_sendpage already does the work of mapping/unmapping the zero page if needed.

This looks good.

Applied.

Thanks,

Ilya
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
In reply to Benoît Canet
Quoted 8 lines · Benoît Canet

Spotted via visual inspection of the code.

Benoît Canet (1):
libceph: Remove spurious kunmap() of the zero page

  net/ceph/messenger.c | 1 -
  1 file changed, 1 deletion(-)

I got no patch with this. Is it just me? -Alex
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
Quoted 11 lines · Alex Elder
Quoted 8 lines · Benoît Canet

Spotted via visual inspection of the code.

Benoît Canet (1):
libceph: Remove spurious kunmap() of the zero page

  net/ceph/messenger.c | 1 -
  1 file changed, 1 deletion(-)

I got no patch with this. Is it just me? -Alex

Nevermind. I get it. This was associated with the patch I just signed off on...

-Alex
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html