X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lib%2Fringbuffer%2Fring_buffer_vfs.c;h=a7c0e695beecfb96769b95464784d0767f2de423;hb=294d35794ac83c4321e4bd3d56317844771517ae;hp=899af8124f05c10f296b7ea167383a399fdb1e28;hpb=e4a88ade00a4b4468df0270fd9d4cbbc551b41a8;p=lttng-modules.git diff --git a/lib/ringbuffer/ring_buffer_vfs.c b/lib/ringbuffer/ring_buffer_vfs.c index 899af812..a7c0e695 100644 --- a/lib/ringbuffer/ring_buffer_vfs.c +++ b/lib/ringbuffer/ring_buffer_vfs.c @@ -261,7 +261,7 @@ long lib_ring_buffer_ioctl(struct file *filp, unsigned int cmd, unsigned long ar arg); } case RING_BUFFER_FLUSH: - lib_ring_buffer_switch_slow(buf, SWITCH_ACTIVE); + lib_ring_buffer_switch_remote(buf); return 0; default: return -ENOIOCTLCMD; @@ -374,7 +374,7 @@ long lib_ring_buffer_compat_ioctl(struct file *filp, unsigned int cmd, return compat_put_ulong(read_offset, arg); } case RING_BUFFER_COMPAT_FLUSH: - lib_ring_buffer_switch_slow(buf, SWITCH_ACTIVE); + lib_ring_buffer_switch_remote(buf); return 0; default: return -ENOIOCTLCMD;