Re: [PATCH] nbd: add a missed nbd_config_put() in nbd_xmit_timeout()

2019-08-12 Thread sunke (E)
Thanks for your review. 在 2019/8/12 23:34, Mike Christie 写道: On 08/12/2019 07:31 AM, Sun Ke wrote: When try to get the lock failed, before return, execute the nbd_config_put() to decrease the nbd->config_refs. If the nbd->config_refs is added but not decreased. Then will not execute

[PATCH] fs/sync.c: Fix UBSAN Undefined behaviour in sync_file_range

2019-07-11 Thread SunKe
and avoid UBSAN reporting. The original compare is to ensure the offset >= 0 && nbytes >= 0 && no overflow happened. I do the calculate after compare. ensure the offset >= 0 && nbytes >= 0 && no overflow may happen first. Signed-off-by: SunKe --- fs/sync.

[PATCH] sample_configfs: bin_file read and write

2019-07-10 Thread SunKe
Add bin_file read and write function Signed-off-by: SunKe --- samples/configfs/configfs_sample.c | 43 ++ 1 file changed, 43 insertions(+) diff --git a/samples/configfs/configfs_sample.c b/samples/configfs/configfs_sample.c index 004a4e2..c76b784 100644

[PATCH 2/2] sample_configfs: soft link creat and delete

2019-06-18 Thread SunKe
Add soft link creation and deletion Signed-off-by: SunKe --- samples/configfs/configfs_sample.c | 41 ++ 1 file changed, 41 insertions(+) diff --git a/samples/configfs/configfs_sample.c b/samples/configfs/configfs_sample.c index c76b784..58915b8 100644

[PATCH 0/2] two test samples for configfs

2019-06-18 Thread SunKe
Add two test samples for configfs. include read and write bin_file and creat soft link. *** BLURB HERE *** SunKe (2): sample_configfs: bin_file read and write sample_configfs: soft link creat and delete samples/configfs/configfs_sample.c | 84 ++ 1 file

[PATCH 1/2] sample_configfs: bin_file read and write

2019-06-18 Thread SunKe
Add bin_file read and write function Signed-off-by: SunKe --- samples/configfs/configfs_sample.c | 43 ++ 1 file changed, 43 insertions(+) diff --git a/samples/configfs/configfs_sample.c b/samples/configfs/configfs_sample.c index 004a4e2..c76b784 100644