Commit c7dd2e52 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5da97fd3
......@@ -232,12 +232,12 @@ def _pin1(wconn, req):
continue # blk ∉ mmap
trace('\tremmapblk %d @%s' % (req.blk, (h(req.at) if req.at else "head")))
# FIXME check if virtmem did not mapped RW page into this block already
# -> check if virtmem did not dirtied page corresponding to this block already
virt_lock()
if not fileh_blk_isdirty(mmap.fileh, req.blk):
# FIXME check if virtmem did not dirtied page corresponding to this block already
#virt_lock()
#if not fileh_blk_isdirty(mmap.fileh, req.blk):
if 1:
mmap._remmapblk(req.blk, req.at)
virt unlock()
#virt_unlock()
trace('\t-> remmaped')
# update f.pinned
......
......@@ -1703,7 +1703,7 @@ class tMapping(object):
# XXX assertCache
# assertBlk asserts that mmap[·] with · corresponding to blk has reads as dataok.
# assertBlk asserts that mmap[·] with · corresponding to blk reads as dataok.
# see also: tFile.assertBlk .
def assertBlk(t, blk, dataok):
assert t.mmap.blk_start <= blk < t.mmap.blk_stop
......@@ -1719,7 +1719,7 @@ class tMapping(object):
# XXX first access without GIL, so that e.g. if there is timeout on
# wcfs.py side, _abort_ontimeout could run and kill WCFS.
# FIXME also test with GIL locked, since wcfs.py pinner must be itself
# running without GIL.
# running without GIL. XXX
_ = read_nogil(blkview[:1])
assert _ == dataok[0]
assert blkview.tobytes() == dataok
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment