Re: [PATCH] ceph: kernel client startsync can be removed

2017-07-23 Thread Yan, Zheng
> @@ -916,9 +914,6 @@ static u32 osd_req_encode_op(struct ceph_osd_op *dst, > * if the file was recently truncated, we include information about its > * old and new size so that the object can be updated appropriately. (we > * avoid synchronously deleting truncated objects because it's slow.) > - * > - * if @do_sync, include a 'startsync' command so that the osd will flush > - * data quickly. > */ > struct ceph_osd_request *ceph_osdc_new_request(struct ceph_osd_client *osdc, > struct ceph_file_layout *layout, > -- > 1.8.3.1 > Applied, thanks. Yan, Zheng

Re: [PATCH 04/12] fs: ceph: CURRENT_TIME with ktime_get_real_ts()

2017-06-04 Thread Yan, Zheng
On Fri, Jun 2, 2017 at 10:18 PM, Arnd Bergmann <a...@arndb.de> wrote: > On Fri, Jun 2, 2017 at 2:18 PM, Yan, Zheng <uker...@gmail.com> wrote: >> On Fri, Jun 2, 2017 at 7:33 PM, Arnd Bergmann <a...@arndb.de> wrote: >>> On Fri, Jun 2, 2017 at 1:18 PM, Yan, Zheng &

Re: [PATCH 04/12] fs: ceph: CURRENT_TIME with ktime_get_real_ts()

2017-06-02 Thread Yan, Zheng
On Fri, Jun 2, 2017 at 7:33 PM, Arnd Bergmann <a...@arndb.de> wrote: > On Fri, Jun 2, 2017 at 1:18 PM, Yan, Zheng <uker...@gmail.com> wrote: >> On Fri, Jun 2, 2017 at 6:51 PM, Arnd Bergmann <a...@arndb.de> wrote: >>> On Fri, Jun 2, 2017 at 12:10 PM,

Re: [PATCH 04/12] fs: ceph: CURRENT_TIME with ktime_get_real_ts()

2017-06-02 Thread Yan, Zheng
On Fri, Jun 2, 2017 at 6:51 PM, Arnd Bergmann <a...@arndb.de> wrote: > On Fri, Jun 2, 2017 at 12:10 PM, Yan, Zheng <uker...@gmail.com> wrote: >> On Fri, Jun 2, 2017 at 5:45 PM, Arnd Bergmann <a...@arndb.de> wrote: >>> On Fri, Jun 2, 2017 at 4:09 AM,

Re: [PATCH 04/12] fs: ceph: CURRENT_TIME with ktime_get_real_ts()

2017-06-02 Thread Yan, Zheng
On Fri, Jun 2, 2017 at 5:45 PM, Arnd Bergmann <a...@arndb.de> wrote: > On Fri, Jun 2, 2017 at 4:09 AM, Yan, Zheng <uker...@gmail.com> wrote: >> On Fri, Jun 2, 2017 at 8:57 AM, Deepa Dinamani <deepa.ker...@gmail.com> >> wrote: >>> On Thu, Jun 1, 2017 at 5:

Re: [PATCH 04/12] fs: ceph: CURRENT_TIME with ktime_get_real_ts()

2017-06-01 Thread Yan, Zheng
On Fri, Jun 2, 2017 at 8:57 AM, Deepa Dinamani <deepa.ker...@gmail.com> wrote: > On Thu, Jun 1, 2017 at 5:36 PM, John Stultz <john.stu...@linaro.org> wrote: >> On Thu, Jun 1, 2017 at 5:26 PM, Yan, Zheng <uker...@gmail.com> wrote: >>> On Thu, Jun 1, 2017 at 6

Re: [PATCH 04/12] fs: ceph: CURRENT_TIME with ktime_get_real_ts()

2017-06-01 Thread Yan, Zheng
On Thu, Jun 1, 2017 at 6:22 PM, Arnd Bergmann <a...@arndb.de> wrote: > On Thu, Jun 1, 2017 at 11:56 AM, Yan, Zheng <uker...@gmail.com> wrote: >> On Sat, Apr 8, 2017 at 8:57 AM, Deepa Dinamani <deepa.ker...@gmail.com> >> wrote: > >>> diff --git a/driver

Re: [PATCH 04/12] fs: ceph: CURRENT_TIME with ktime_get_real_ts()

2017-06-01 Thread Yan, Zheng
On Thu, Jun 1, 2017 at 6:22 PM, Arnd Bergmann <a...@arndb.de> wrote: > On Thu, Jun 1, 2017 at 11:56 AM, Yan, Zheng <uker...@gmail.com> wrote: >> On Sat, Apr 8, 2017 at 8:57 AM, Deepa Dinamani <deepa.ker...@gmail.com> >> wrote: > >>> diff --git a/driver

Re: [PATCH 04/12] fs: ceph: CURRENT_TIME with ktime_get_real_ts()

2017-06-01 Thread Yan, Zheng
->sb->s_time_gran); This change causes our kernel_untar_tar test case to fail (inode's ctime goes back). The reason is that there is time drift between the time stamps got by ktime_get_real_ts() and current_time(). We need to revert this change until current_time() uses ktime_get_real_ts() in

Re: [PATCH] fix multiple issues in MLDv2 reports

2005-12-15 Thread Yan Zheng
@@ -1281,7 +1345,18 @@ static int is_in(struct ifmcaddr6 *pmc, case MLD2_MODE_IS_EXCLUDE: if (gdeleted || sdeleted) return 0; - return !((pmc-mca_flags MAF_GSQUERY) !psf-sf_gsresp); + if (!((pmc-mca_flags

[DEBUG INFO]IPv6: sleeping function called from invalid context.

2005-11-17 Thread Yan Zheng
I get follow message when switch to single user mode and the kernel version is 2.6.15-rc1-git5. Regards Nov 18 08:26:23 localhost kernel: Debug: sleeping function called from invalid context at mm/slab.c:2472 Nov 18 08:26:23 localhost kernel: in_atomic():1, irqs_disabled():0 Nov 18 08:26:23

[PATCH]IPv6: small fix for ipv6_dev_get_saddr(...)

2005-11-14 Thread Yan Zheng
The score.rule++ doesn't make any sense for me. According to codes above, I think it should be hiscore.rule++; . Signed-off-by: Yan Zheng[EMAIL PROTECTED] Index: net/ipv6/addrconf.c --- a/net/ipv6/addrconf.c 2005-11-13 12:23

[PATCH 1/2][MCAST] Fix for is_in(...)

2005-11-09 Thread Yan Zheng
by query.c. You will notice that both X and Y are included in the MODE_IS_EXCLUDE report's source address list. I hope I provide enough information this time. :-) Regards Signed-off-by: Yan Zheng[EMAIL PROTECTED] Index:net/ipv6/mcast.c

[PATCH 2/2][MCAST] Fix for add_grec(...)

2005-11-09 Thread Yan Zheng
MLD2_CHANGE_TO_EXCLUDE or MLD2_MODE_IS_EXCLUDE report may be eliminated. You can check this bug by test1.c in attachments. You will notice that there is no MLD2_CHANGE_TO_EXCLUDE report. Regards Signed-off-by: Yan Zheng[EMAIL PROTECTED] Index:net/ipv6/mcast.c

[PATCH][MCAST]Check packet size when process Multicast Address and Source Specific Query

2005-11-09 Thread Yan Zheng
The patch changes the old one to equivalent code in IGMPv3 as David Stevens's suggestion http://lkml.org/lkml/2005/10/31/221 Regards Signed-off-by: Yan Zheng[EMAIL PROTECTED] Index:net/ipv6/mcast.c == --- linux-2.6.14/net/ipv6

Re: [PATCH 2/2][MCAST] Fix for add_grec(...)

2005-11-09 Thread Yan Zheng
David Stevens wrote: Yan, I think your patch has some problems. Yan Zheng [EMAIL PROTECTED] wrote on 11/09/2005 03:58:20 AM: +#if 0 if (!*psf_list) { if (type == MLD2_ALLOW_NEW_SOURCES || type == MLD2_BLOCK_OLD_SOURCES) @@ -1474,12 +1477,15 @@ static struct sk_buff

[PATCH][MCAST]Clear MAF_GSQUERY flag when process MLDv1 general query messages.

2005-11-07 Thread Yan Zheng
Hi. MAF_GSQUERY flag may cause problem when MLDv1 compatibility mode expires. Signed-off-by: Yan Zheng [EMAIL PROTECTED] Index: net/ipv6/mcast.c --- linux-2.6.14/net/ipv6/mcast.c 2005-11-05 09:09

Re: [PATCH][MCAST]Clear MAF_GSQUERY flag when process MLDv1 general query messages.

2005-11-07 Thread Yan Zheng
Could you be more specific about what problem it will cause? Thanks, John -- John W. Linville [EMAIL PROTECTED] If the first query message receive after expiration is MLDv2 general query and MAF_GSQUERY flag is set. The report message only contains sources marked by last MLDv2 Multicast

[BUG?]memory leakage in fib_create_info()?

2005-08-05 Thread Yan Zheng
Kernel: linux-2.6.12.3 Keywords: IPv4 Forwarding Information Base Function fib_create_info(in net/ipv4/fib_semantics.c) do not free memory used by old hash table after enlarge fib_info hash table. Is this a bug? give me a replay please!

[Question]No memory release after enlarge fib_info hash table

2005-08-04 Thread Yan Zheng
linux 2.6.12.3 net/ipv4/fib_semantics.c:line 679 if (fib_info_cnt = fib_hash_size) { unsigned int new_size = fib_hash_size 1; struct hlist_head *new_info_hash; struct hlist_head *new_laddrhash; unsigned int bytes;