UCHINO Satoshi d68c277b50 usb: gadget: f_mass_storage: add missing memory barrier for thread_wakeup_needed
Without this memory barrier, the file-storage thread may fail to
escape from the following while loop, because it may observe new
common->thread_wakeup_needed and old bh->state which are updated by
the callback functions.

	/* Wait for the CBW to arrive */
	while (bh->state != BUF_STATE_FULL) {
		rc = sleep_thread(common);
		if (rc)
			return rc;
	}

Cc: stable@vger.kernel.org
Signed-off-by: UCHINO Satoshi <satoshi.uchino@toshiba.co.jp>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-06-10 17:10:34 +03:00
..
2013-04-09 14:13:03 -04:00
2013-04-05 15:18:00 -07:00
2013-05-05 00:16:11 -04:00
2013-04-05 15:18:00 -07:00
2013-05-05 00:16:11 -04:00
2012-11-21 13:27:17 -08:00
2013-05-07 18:38:29 -07:00
2013-04-05 15:18:00 -07:00
2013-04-05 15:18:00 -07:00
2013-04-03 21:02:47 +03:00
2013-02-22 23:31:31 -05:00
2013-04-09 14:13:32 -04:00
2013-04-05 15:18:00 -07:00