search for: ocfs2_write_begin

Displaying 20 results from an estimated 23 matches for "ocfs2_write_begin".

2012 Jun 25
4
fix mlog_errno in ocfs2_global_read_info
Hi, All, When mount ocfs2 with option usrquota and grpquota, we will see below message: (mount.ocfs2,9434,1):ocfs2_global_read_info:403 ERROR: status = 24 (mount.ocfs2,9434,3):ocfs2_global_read_info:403 ERROR: status = 24 But actually this should not be a error. In ocfs2_global_read_info, if read_quota() succeed, status is the size of the struct ocfs2_global_disk_dqinfo, only when it is not
2010 Apr 05
1
Kernel Panic, Server not coming back up
...is the latest from one of the alive hosts: # dmesg | tail -50 (2869,0):ocfs2_lock_allocators:677 ERROR: status = -5 (2869,0):__ocfs2_extend_allocation:739 ERROR: status = -5 (2869,0):ocfs2_extend_no_holes:952 ERROR: status = -5 (2869,0):ocfs2_expand_nonsparse_inode:1678 ERROR: status = -5 (2869,0):ocfs2_write_begin_nolock:1722 ERROR: status = -5 (2869,0):ocfs2_write_begin:1860 ERROR: status = -5 (2869,0):ocfs2_file_buffered_write:2039 ERROR: status = -5 (2869,0):__ocfs2_file_aio_write:2194 ERROR: status = -5 OCFS2: ERROR (device sdc1): ocfs2_check_group_descriptor: Group descriptor # 1128960 has bit count 322...
2009 Mar 05
1
[PATCH] OCFS2: Pagecache usage optimization on OCFS2
...x-2.6.29-rc7/fs/ocfs2/aops.c 2009-03-05 13:50:59.000000000 +0900 @@ -1953,15 +1953,16 @@ static int ocfs2_write_end(struct file * } const struct address_space_operations ocfs2_aops = { - .readpage = ocfs2_readpage, - .readpages = ocfs2_readpages, - .writepage = ocfs2_writepage, - .write_begin = ocfs2_write_begin, - .write_end = ocfs2_write_end, - .bmap = ocfs2_bmap, - .sync_page = block_sync_page, - .direct_IO = ocfs2_direct_IO, - .invalidatepage = ocfs2_invalidatepage, - .releasepage = ocfs2_releasepage, - .migratepage = buffer_migrate_page, + .readpage = ocfs2_readpage, + .readpages = ocfs2_readpages,...
2009 Feb 11
1
Possible lock inversion in directory locking
...p annotations of OCFS2. I seem to have most of the false positives sorted out and currently I hit the report below. I've analyzed that ocfs2_extend_dir() does first lock local alloc inode in ocfs2_reserve_clusters() and then acquires ip_alloc_sem from the directory. The usual ordering e.g. in ocfs2_write_begin() is to first acquire ip_alloc_sem and then lock local alloc. Now these two paths obviously cannot deadlock against each other because one works only for directories and another only for files. But there are some code paths that are shared among all inodes and I see some potential for deadlock ther...
2015 Oct 14
1
Ocfs2-devel Digest, Vol 138, Issue 31 review
...32:25 cvknode73 kernel: [678904.825103] [<ffffffff81750690>] dump_stack+0x46/0x58 > Aug 11 11:32:25 cvknode73 kernel: [678904.825154] [<ffffffffa052f667>] ocfs2_start_trans+0x1d7/0x200 [ocfs2] > Aug 11 11:32:25 cvknode73 kernel: [678904.825183] [<ffffffffa0505b60>] ocfs2_write_begin_nolock+0xda0/0x1c70 [ocfs2] > Aug 11 11:32:25 cvknode73 kernel: [678904.825216] [<ffffffffa052b7cb>] ? ocfs2_read_inode_block_full+0x3b/0x60 [ocfs2] > Aug 11 11:32:25 cvknode73 kernel: [678904.825248] [<ffffffffa051a82f>] ? ocfs2_inode_lock_full_nested+0x52f/0xc60 [ocfs2...
2015 Oct 14
2
Ocfs2-devel Digest, Vol 138, Issue 31 review
...1:32:25 cvknode73 kernel: [678904.825103] [<ffffffff81750690>] dump_stack+0x46/0x58 > Aug 11 11:32:25 cvknode73 kernel: [678904.825154] [<ffffffffa052f667>] ocfs2_start_trans+0x1d7/0x200 [ocfs2] > Aug 11 11:32:25 cvknode73 kernel: [678904.825183] [<ffffffffa0505b60>] ocfs2_write_begin_nolock+0xda0/0x1c70 [ocfs2] > Aug 11 11:32:25 cvknode73 kernel: [678904.825216] [<ffffffffa052b7cb>] ? ocfs2_read_inode_block_full+0x3b/0x60 [ocfs2] > Aug 11 11:32:25 cvknode73 kernel: [678904.825248] [<ffffffffa051a82f>] ? ocfs2_inode_lock_full_nested+0x52f/0xc60 [ocfs2]...
2017 Jun 19
1
core dump on ocfs2
...nel: [885017.413706] [<ffffffffa053396b>] ocfs2_reserve_clusters_with_limit+0xab/0x330 [ocfs2] Jun 19 14:22:45 posta2 kernel: [885017.413780] [<ffffffffa0534d15>] ocfs2_lock_allocators+0xc5/0x290 [ocfs2] Jun 19 14:22:45 posta2 kernel: [885017.413847] [<ffffffffa04e30fd>] ocfs2_write_begin_nolock+0x89d/0x11d0 [ocfs2] Jun 19 14:22:45 posta2 kernel: [885017.413883] [<ffffffffa04e3b47>] ocfs2_write_begin+0x117/0x240 [ocfs2] Jun 19 14:22:45 posta2 kernel: [885017.413900] [<ffffffff810fa1a2>] generic_perform_write+0xc2/0x1c0 Jun 19 14:22:45 posta2 kernel: [885017.413...
2012 Jun 21
1
echo 0 > /proc/sys/kernel/hung_task_timeout_secs and others error, Part II
...x30 Jun 20 20:42:01 H3CRDS11-RD kernel: [17509.034833] [<ffffffff8165b754>] ? down_read+0x24/0x2b Jun 20 20:42:01 H3CRDS11-RD kernel: [17509.034859] [<ffffffffa0553b11>] ocfs2_start_trans+0xe1/0x1e0 [ocfs2] Jun 20 20:42:01 H3CRDS11-RD kernel: [17509.034878] [<ffffffffa052ab35>] ocfs2_write_begin_nolock+0x945/0x1c40 [ocfs2] Jun 20 20:42:01 H3CRDS11-RD kernel: [17509.034903] [<ffffffffa054cb90>] ? ocfs2_inode_is_valid_to_delete+0x1f0/0x1f0 [ocfs2] Jun 20 20:42:01 H3CRDS11-RD kernel: [17509.034927] [<ffffffffa053fa9c>] ? ocfs2_inode_lock_full_nested+0x52c/0xa90 [ocfs2] Jun 20 20...
2012 Jun 21
1
echo 0 > /proc/sys/kernel/hung_task_timeout_secs and others error, Part II
...x30 Jun 20 20:42:01 H3CRDS11-RD kernel: [17509.034833] [<ffffffff8165b754>] ? down_read+0x24/0x2b Jun 20 20:42:01 H3CRDS11-RD kernel: [17509.034859] [<ffffffffa0553b11>] ocfs2_start_trans+0xe1/0x1e0 [ocfs2] Jun 20 20:42:01 H3CRDS11-RD kernel: [17509.034878] [<ffffffffa052ab35>] ocfs2_write_begin_nolock+0x945/0x1c40 [ocfs2] Jun 20 20:42:01 H3CRDS11-RD kernel: [17509.034903] [<ffffffffa054cb90>] ? ocfs2_inode_is_valid_to_delete+0x1f0/0x1f0 [ocfs2] Jun 20 20:42:01 H3CRDS11-RD kernel: [17509.034927] [<ffffffffa053fa9c>] ? ocfs2_inode_lock_full_nested+0x52c/0xa90 [ocfs2] Jun 20 20...
2015 Oct 14
2
Ocfs2-devel Digest, Vol 138, Issue 31 review
...78904.825103] [<ffffffff81750690>] dump_stack+0x46/0x58 >> > Aug 11 11:32:25 cvknode73 kernel: [678904.825154] [<ffffffffa052f667>] ocfs2_start_trans+0x1d7/0x200 [ocfs2] >> > Aug 11 11:32:25 cvknode73 kernel: [678904.825183] [<ffffffffa0505b60>] ocfs2_write_begin_nolock+0xda0/0x1c70 [ocfs2] >> > Aug 11 11:32:25 cvknode73 kernel: [678904.825216] [<ffffffffa052b7cb>] ? ocfs2_read_inode_block_full+0x3b/0x60 [ocfs2] >> > Aug 11 11:32:25 cvknode73 kernel: [678904.825248] [<ffffffffa051a82f>] ? ocfs2_inode_lock_full...
2015 Oct 14
1
Ocfs2-devel Digest, Vol 138, Issue 31 review
...ll Trace: Aug 11 11:32:25 cvknode73 kernel: [678904.825103] [<ffffffff81750690>] dump_stack+0x46/0x58 Aug 11 11:32:25 cvknode73 kernel: [678904.825154] [<ffffffffa052f667>] ocfs2_start_trans+0x1d7/0x200 [ocfs2] Aug 11 11:32:25 cvknode73 kernel: [678904.825183] [<ffffffffa0505b60>] ocfs2_write_begin_nolock+0xda0/0x1c70 [ocfs2] Aug 11 11:32:25 cvknode73 kernel: [678904.825216] [<ffffffffa052b7cb>] ? ocfs2_read_inode_block_full+0x3b/0x60 [ocfs2] Aug 11 11:32:25 cvknode73 kernel: [678904.825248] [<ffffffffa051a82f>] ? ocfs2_inode_lock_full_nested+0x52f/0xc60 [ocfs2] Aug 11 11:32:25 cv...
2015 Oct 14
1
Ocfs2-devel Digest, Vol 138, Issue 31 review
...ll Trace: Aug 11 11:32:25 cvknode73 kernel: [678904.825103] [<ffffffff81750690>] dump_stack+0x46/0x58 Aug 11 11:32:25 cvknode73 kernel: [678904.825154] [<ffffffffa052f667>] ocfs2_start_trans+0x1d7/0x200 [ocfs2] Aug 11 11:32:25 cvknode73 kernel: [678904.825183] [<ffffffffa0505b60>] ocfs2_write_begin_nolock+0xda0/0x1c70 [ocfs2] Aug 11 11:32:25 cvknode73 kernel: [678904.825216] [<ffffffffa052b7cb>] ? ocfs2_read_inode_block_full+0x3b/0x60 [ocfs2] Aug 11 11:32:25 cvknode73 kernel: [678904.825248] [<ffffffffa051a82f>] ? ocfs2_inode_lock_full_nested+0x52f/0xc60 [ocfs2] Aug 11 11:32:25 cv...
2011 Aug 10
1
fsck hangs in Pass 0a
...dow:1013 ERROR: status = -5 (kvm,12322,1):ocfs2_local_alloc_slide_window:1116 ERROR: status = -5 (kvm,12322,1):ocfs2_reserve_local_alloc_bits:537 ERROR: status = -5 (kvm,12322,1):__ocfs2_reserve_clusters:816 ERROR: status = -5 (kvm,12322,1):ocfs2_lock_allocators:677 ERROR: status = -5 (kvm,12322,1):ocfs2_write_begin_nolock:1750 ERROR: status = -5 (kvm,12322,1):ocfs2_write_begin:1860 ERROR: status = -5 (kvm,12322,1):ocfs2_file_buffered_write:2039 ERROR: status = -5 OCFS2: ERROR (device dm-7): ocfs2_check_group_descriptor: Group Descriptor # 0 has bad signature So I ran fsck.ocfs2 -f. But it hangs forever (&g...
2011 Sep 02
5
Linux kernel crash due to ocfs2
...t. the stack is as follows: .ocfs2_journal_dirty+0x78/0x13c [ocfs2] .ocfs2_search_chain+0x131c/0x165c [ocfs2] .ocfs2_claim_suballoc_bits+0xadc/0xd94 [ocfs2] .__ocfs2_claim_clusters+0x1b0/0x348 [ocfs2] .ocf2_do_extend_allocation+0x1f8/0x5b4 [ocfs2] .ocfs2_write_cluster_by_desc+0x128/0x850 [ocfs2] .ocfs2_write_begin_nolock+0xdc0/0xfbc [ocfs2] .ocfs2_write_begin+0x124/0x224 [ocfs2] .ocfs2_file_aio_write+0x6a4/0xb40 [ocfs2] .aio_pwrite+0x50/0xb4 .aio_run_iocb+0x140/0x214 .io_submit_one+0x2fc/0x3a8 .sys_io_submit+0xd0/0x17c syscall_exit+0x0/0x40 In the last crash case, the file system was full. Any clues? Ther...
2009 Jul 13
1
[PATCH 1/1] adds mlogs to aops.c
...log_entry("(%llu, 0x%p, ..)\n", OCFS2_I(inode)->ip_blkno, wc); + *clusters_to_alloc = 0; *extents_to_split = 0; @@ -1479,6 +1583,7 @@ static int ocfs2_populate_write_desc(struct inode *inode, ret = 0; out: + mlog_exit(ret); return ret; } @@ -1492,6 +1597,9 @@ static int ocfs2_write_begin_inline(struct address_space *mapping, handle_t *handle; struct ocfs2_dinode *di = (struct ocfs2_dinode *)wc->w_di_bh->b_data; + mlog_entry("(0x%p, %llu, 0x%p)\n", + mapping, OCFS2_I(inode)->ip_blkno, wc); + page = find_or_create_page(mapping, 0, GFP_NOFS); if (!page...
2009 Jul 21
1
(no subject)
...p, ..)\n", + (unsigned long long)OCFS2_I(inode)->ip_blkno, wc); + *clusters_to_alloc = 0; *extents_to_split = 0; @@ -1479,6 +1591,7 @@ static int ocfs2_populate_write_desc(struct inode *inode, ret = 0; out: + mlog_exit(ret); return ret; } @@ -1492,6 +1605,9 @@ static int ocfs2_write_begin_inline(struct address_space *mapping, handle_t *handle; struct ocfs2_dinode *di = (struct ocfs2_dinode *)wc->w_di_bh->b_data; + mlog_entry("(0x%p, %llu, 0x%p)\n", + mapping, (unsigned long long)OCFS2_I(inode)->ip_blkno, wc); + page = find_or_create_page(mapping, 0, GF...
2009 Jul 21
1
[PATCH 1/1] ocfs2: adds mlogs to aops.c -V2
...p, ..)\n", + (unsigned long long)OCFS2_I(inode)->ip_blkno, wc); + *clusters_to_alloc = 0; *extents_to_split = 0; @@ -1479,6 +1591,7 @@ static int ocfs2_populate_write_desc(struct inode *inode, ret = 0; out: + mlog_exit(ret); return ret; } @@ -1492,6 +1605,9 @@ static int ocfs2_write_begin_inline(struct address_space *mapping, handle_t *handle; struct ocfs2_dinode *di = (struct ocfs2_dinode *)wc->w_di_bh->b_data; + mlog_entry("(0x%p, %llu, 0x%p)\n", + mapping, (unsigned long long)OCFS2_I(inode)->ip_blkno, wc); + page = find_or_create_page(mapping, 0, GF...
2009 Jun 02
10
[PATCH 0/7] [RESEND] Fix some deadlocks in quota code and implement lockdep for cluster locks
Hi, I'm resending this patch series. It's rediffed against linux-next branch of Joel's git tree. The first four patches are obvious fixes of deadlocks in quota code and should go in as soon as possible. The other three patches implement lockdep support for OCFS2 cluster locks. So you can have a look whether the code make sence to you and possibly merge them. They should be NOP when
2009 Jun 18
8
Patches backported from mainline
All, Please review the patches backported to 1.4 from mainline. Sunil
2009 Feb 26
1
[PATCH 0/7] OCFS2 locking fixes and lockdep annotations
Hi, the first four patches in this series fix locking problems in OCFS2 quota code (three of them can lead to potential deadlocks). The fifth patch reorders ip_alloc_sem for directories to be acquired before localalloc locks. Mark would you please merge these? The last two patches implement lockdep annotations for OCFS2 cluster locks. We annotate all the cluster locks except for special ones