[PATCH RESEND] docs: update trusted-encrypted.rst

2020-08-15 Thread colyli
From: Coly Li The parameters in tmp2 commands are outdated, people are not able to create trusted key by the example commands. This patch updates the paramerters of tpm2 commands, they are verified by tpm2-tools-4.1 with Linux v5.8 kernel. Signed-off-by: Coly Li Cc: Dan Williams Cc: James

[PATCH v4 3/3] drbd: code cleanup by using sendpage_ok() to check page for kernel_sendpage()

2020-08-15 Thread colyli
From: Coly Li In _drbd_send_page() a page is checked by following code before sending it by kernel_sendpage(), (page_count(page) < 1) || PageSlab(page) If the check is true, this page won't be send by kernel_sendpage() and handled by sock_no_sendpage(). This kind of check is exactly

[PATCH v2 2/3] nvme-tcp: check page by sendpage_ok() before calling kernel_sendpage()

2020-08-15 Thread colyli
From: Coly Li Currently nvme_tcp_try_send_data() doesn't use kernel_sendpage() to send slab pages. But for pages allocated by __get_free_pages() without __GFP_COMP, which also have refcount as 0, they are still sent by kernel_sendpage() to remote end, this is problematic. The new introduced

[PATCH v4 1/3] net: introduce helper sendpage_ok() in include/linux/net.h

2020-08-15 Thread colyli
From: Coly Li The original problem was from nvme-over-tcp code, who mistakenly uses kernel_sendpage() to send pages allocated by __get_free_pages() without __GFP_COMP flag. Such pages don't have refcount (page_count is 0) on tail pages, sending them by kernel_sendpage() may trigger a kernel

[PATCH] tiny: remove a redundant semicolon in wait.h

2017-02-17 Thread colyli
In the end of macro wait_event_interruptible_lock_irq_timeout(), there is a semicolon, and at the location where this macro is referenced by macro wait_event_interruptible_lock_irq_timeout(), there is another semicolon, then we have two semicolon at end of a line. Redundant semicolons here

[PATCH] tiny: remove a redundant semicolon in wait.h

2017-02-17 Thread colyli
In the end of macro wait_event_interruptible_lock_irq_timeout(), there is a semicolon, and at the location where this macro is referenced by macro wait_event_interruptible_lock_irq_timeout(), there is another semicolon, then we have two semicolon at end of a line. Redundant semicolons here