search for: relock

Displaying 18 results from an estimated 18 matches for "relock".

Did you mean: reloc
2013 May 06
2
[PATCH] ocfs2: unlock rw lock if inode lock failed
...s2_cluster_unlock. Signed-off-by: Joseph Qi <joseph.qi at huawei.com> --- fs/ocfs2/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 6474cb4..e2cd7a8 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -2290,7 +2290,7 @@ relock: ret = ocfs2_inode_lock(inode, NULL, 1); if (ret < 0) { mlog_errno(ret); - goto out_sems; + goto out; } ocfs2_inode_unlock(inode, 1); -- 1.7.9.7
2010 Nov 19
5
[PATCH 1/1] Ocfs2: Teach 'coherency=full' O_DIRECT writes to correctly up_read i_alloc_sem.
...signed long *)&iocb->private) +#define ocfs2_iocb_coherency(iocb) \ + test_bit(2, (unsigned long *)&iocb->private) #endif /* OCFS2_FILE_H */ diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 77b4c04..df070a3 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -2277,8 +2277,24 @@ relock: } ocfs2_inode_unlock(inode, 1); + + /* + * Due to the fault of 'full_coherency' O_DIRECT + * write needs to acqure both i_alloc_sem and rw_lock. + * We do another trick here to have coherency bit + * stored in iocb to communicate with ocfs2_dio_end_io + * for properly un...
2009 Jul 11
2
Initialize count in aio_write before generic_write_checks
...Writes to files open with O_DIRECT|O_LARGEFILE write 0 bytes because count in uninitialized. Signed-off-by: Goldwyn Rodrigues <rgoldwyn at suse.de> diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index a5887df..5b9c8af 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -1841,6 +1841,7 @@ relock: if (ret) goto out_dio; + count = ocount; ret = generic_write_checks(file, ppos, &count, S_ISBLK(inode->i_mode)); if (ret) -- Goldwyn
2010 Apr 15
1
[PATCH] ocfs2: avoid direct write if we fall back to buffered v2
....cgi?id=591039 revised with Joel's comments. --- fs/ocfs2/file.c | 23 ++++++++++++----------- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index de059f4..0240de7 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -1973,18 +1973,18 @@ relock: /* communicate with ocfs2_dio_end_io */ ocfs2_iocb_set_rw_locked(iocb, rw_level); - if (direct_io) { - ret = generic_segment_checks(iov, &nr_segs, &ocount, - VERIFY_READ); - if (ret) - goto out_dio; + ret = generic_segment_checks(iov, &nr_segs, &ocount, +...
2016 Feb 19
0
mac os x clients "error code -43"
...full_audit vfs objects = acl_xattr nt acl support = Yes map acl inherit = Yes store dos attributes = No veto files = /*._crypt/*.AES2/*.chifrator*/*.cpderksu*/*.cry/*.crypto/*.darkness/*.dyatel*/*.enc*/*.gruzin*/*.hb15/*.help*/*.kraken/*.locked/*.nalog*/*.nochance/*.oplata*/*.oshit/*.pizda*/*.relock*/*.troyancoder*/*.encrypted/*.ccc/*.xyz/*.aaa/*.abc/*.eee/*.exx/.zzz/*.mkv/*.asp/*.cgi/*.vv/*.vvv/*.MICRO/ [ELELE] path = /media/25tb/opi/dergimac/Elele browseable = yes writeable = yes valid users = @__renkayrim, at __foto_arsiv, at _mac_elele,@"Domain Admins" write list = @_mac_...
2009 Oct 04
1
Modify base R functions in Rprofile.site
Hi everyone, I want to modify two base R functions 'parse' and 'deparse' immediately after R has started, so I added some code in the file 'Rprofile.site' under the 'etc' directory. Here is a simple example: parse=function(...){ base::parse(...) } I'll get an error when I start R as follows: Error: cannot change value of locked binding for
2010 May 17
0
ActiveResource 3 on MRI 191: NameError (uninitialized constant Builder::XmlBase::Symbol)
...d_of?(Symbol) Why that method_missing is firing off xmlmarkup:239 is a bit of a mystery to me, as 239 is just: _ensure_no_block block_given? the backtrace: builder (2.1.2) lib/builder/xmlbase.rb:40:in `method_missing'' builder (2.1.2) lib/builder/xmlmarkup.rb:239:in `instruct!'' relock/gems/activesupport-3.0.0.beta3/lib/active_support/core_ext/hash/ conversions.rb:136:in `to_xml'' [...] Any suggestions on stuff to try or look into? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,...
2009 Apr 07
0
[PATCH 1/1] OCFS2: use i_size_read() instead of direct accessing inode->i_size
..._size: pos += copied; - if (pos > inode->i_size) { + if (pos > i_size_read(inode)) { i_size_write(inode, pos); mark_inode_dirty(inode); } diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index a5887df..eabfe65 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -1854,8 +1854,8 @@ relock: * blocks outside i_size. Trim these off again. * Don't need i_size_read because we hold i_mutex. */ - if (*ppos + count > inode->i_size) - vmtruncate(inode, inode->i_size); + if (*ppos + count > i_size_read(inode)) + vmtruncate(inode, i_size_read(inode));...
2013 Jul 25
0
[PATCH V8 21/33] ocfs2: add support for read_iter and write_iter
...r(inode, file, file->f_path.dentry, (unsigned long long)OCFS2_I(inode)->ip_blkno, file->f_path.dentry->d_name.len, file->f_path.dentry->d_name.name, - (unsigned int)nr_segs); + (unsigned long long)pos); if (iocb->ki_left == 0) return 0; @@ -2343,28 +2341,24 @@ relock: /* communicate with ocfs2_dio_end_io */ ocfs2_iocb_set_rw_locked(iocb, rw_level); - ret = generic_segment_checks(iov, &nr_segs, &ocount, - VERIFY_READ); - if (ret) - goto out_dio; - count = ocount; + count = iov_iter_count(iter); ret = generic_write_checks(file, ppos, &a...
2013 Jan 09
0
[PATCH V5 19/30] ocfs2: add support for read_iter, write_iter, and direct_IO_bvec
...r(inode, file, file->f_path.dentry, (unsigned long long)OCFS2_I(inode)->ip_blkno, file->f_path.dentry->d_name.len, file->f_path.dentry->d_name.name, - (unsigned int)nr_segs); + (unsigned long long)pos); if (iocb->ki_left == 0) return 0; @@ -2344,28 +2342,24 @@ relock: /* communicate with ocfs2_dio_end_io */ ocfs2_iocb_set_rw_locked(iocb, rw_level); - ret = generic_segment_checks(iov, &nr_segs, &ocount, - VERIFY_READ); - if (ret) - goto out_dio; - count = ocount; + count = iov_iter_count(iter); ret = generic_write_checks(file, ppos, &a...
2011 Jun 24
10
[PATCH 0/9] remove i_alloc_sem V2
i_alloc_sem has always been a bit of an odd "lock". It''s the only remaining rw_semaphore that can be released by a different thread than the one that locked it, and it''s use case in the core direct I/O code is more like a counter given that the writers already have external serialization. This series removes it in favour of a simpler counter scheme, thus getting rid
2004 Aug 06
5
Icecast deadlock with 1.3.12 (fixed)
...ping issue with mutexes being locked multiple times with the same thread; which is where the problem may be; In find_mount_with_req() (which must be called with mutex's locked) if the transparent proxy is set, it calls relay_pull_stream(), (line 687) which eventually calls source_login which relocks info.source_mutex. (This was Alex's find) At this point, that thread is locked up, and eventually the second connection handler thread tries to lock it, and the calendar thread too. The original server is unable to send data so it kicks the relay and the server is hosed. The potentia...
2015 Mar 13
0
Ah I've got it now .Thanks! RE: Understanding why "no metadata object found ... not exported?" warnings from the methods package exist, and what they mean
...cannot be changed. So `mypkg` needs to work on a copy of the metadata object if it needs to update the value of the metadata object (which in fact it does need to do). An alternative to copying might be to temporarily unlock the binding in the namespace of the otherpackage, update the object, and relock the binding - but since I have only just learnt about locking environments and bindings, I have no idea what the consequences of that might be. I'll leave well enough alone. Many thanks for helping me learn about this. Geoff PS Apologies if I have sent too much to the list about this topic...
2010 Oct 09
2
[PATCH 1/2] Ocfs2: Add a mount option "coherency=*" for O_DIRECT writes.
Currently, default behavior of O_DIRECT writes was allowing concurrent writing among nodes, no cluster coherency guaranteed (no EX locks was taken), it hurts buffered reads on other nodes by reading stale data from cache. The new mount option introduce a chance to choose two different behaviors for O_DIRECT writes: * coherency=full, as the default value, will disallow concurrent
2015 May 25
2
fsck failing to notice that the block device was pulled out from under it?
...r from the bottom up to the top However I am only able to see the USB layer do that: "usb 4-1.1: USB disconnect, device number 7" I can't see any log message from the usb-storage that would let me know that the device has disappeared. Neither can I see LUKS telling me that it is relocking the device (which `gnome-disk` is telling me it did). Nor can I see ext4 telling me that the block device under it is gone. 2. the information of "the device is gone" should be passed from the first layer that has that problem up through all following layers. Why doesn't this ap...
2009 Jan 14
15
Backport patches to ocfs2 1.4 tree from mainline
Found 15 patches (out of 162) that appeared relevant to ocfs2 1.4. Please review. Sunil
2006 Oct 01
11
Mongrel woes fixed
Hello all, For the past couple of weeks I have been spending some time debugging a couple of issues I was having with Mongrel when I put load on it. I have seen two distinct issues: 1. Mongrel stopped responding as if in an endless loop. 2. Mongrel crashed when severely loaded. I believe to have resolved these two issues and have attached patches which shows the resolution (simple as it is).
2006 Jul 26
5
linux-2.6-xen.hg
Hi, Is the http://xenbits.xensource.com/linux-2.6-xen.hg tree still being updated? if not, what''s the preferred Linux tree to track that has all of the Xen bits? Thanks, Muli _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel