Re: [Devel] [PATCH rh7] cbt: fix possible race on alloc_page()

2016-05-25 Thread Dmitry Monakhov
Maxim Patlasov writes: > cbt_page_alloc() drops cbt->lock before calling alloc_page(), > then re-acquires it. It's safer to re-check that cbt->map[idx] > is still NULL after re-acquiring the lock. > > Signed-off-by: Maxim Patlasov Indeed. Ack. > --- > block/blk-cbt.c |7 ++- > 1 file ch

[Devel] [PATCH rh7] kernel/sysrq: reset watchdog on all cpus while during sysrq-w

2016-05-25 Thread Andrey Ryabinin
Lengthy output of sysrq-w may take a lot of time on slow serial console. Currently we reset NMI-watchdog on the current cpu to avoid softlockup, however this doesn't work since watchdog might be triggered on the other cpu which is waits for proceeding an IPI. Reset watchdog on all cpus to prevent

[Devel] [PATCH rh7] pfcache: pick page from peer mapping after readahead

2016-05-25 Thread Vladimir Davydov
There's a mistake in pick_peer_page. This function is called before issuing read from pagefault and file read paths, in order to retrieve the page from peer's mapping and thus save us io and page cache. In this function we first lookup the page in the peer's mapping. If it fails, we start readahead

[Devel] [PATCH] scripts: add /usr/libexec/criu/scripts/spfs-release-replace.sh to vz-rst

2016-05-25 Thread Stanislav Kinsburskiy
Add one more spfs-related restore script (this time for "post-restore" stage), which is required to release spfs manager replace processes (they are waiting for it to proceed with actual remount and replacement). Signed-off-by: Stanislav Kinsburskiy --- scripts/vz-rst.in | 11 --- 1 fi

[Devel] [PATCH] scripts: add /usr/libexec/criu/scripts/spfs-release-replace.sh to vz-rst

2016-05-25 Thread Stanislav Kinsburskiy
Add one more spfs-related restore script (this time for "post-restore" stage), which is required to release spfs manager replace processes (they are waiting for it to proceed with actual remount and replacement). Signed-off-by: Stanislav Kinsburskiy --- scripts/vz-rst.in | 11 --- 1 fi

[Devel] [PATCH rh7] ploop: io_direct: delay f_op->fsync() until FLUSH|FUA

2016-05-25 Thread Maxim Patlasov
Once we converted extent to initialized it can be part of uncompleted journal transaction, so we have to force transaction commit at some point. Instead of forcing transaction commit immediately, the patch delays it until an incoming bio with FLUSH|FUA arrives. Then, as the very first step of proc