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