[PATCH v3 1/2] ring-buffer: Use wait_event_interruptible() in ring_buffer_wait()