Index: uspace/lib/c/generic/rcu.c
===================================================================
--- uspace/lib/c/generic/rcu.c	(revision 1b20da07baaa3e3c424f62c927274e676e4295cd)
+++ uspace/lib/c/generic/rcu.c	(revision 928a2cbbc75ddb1a52c2123f04217b3c916102ed)
@@ -169,9 +169,9 @@
 {
 	assert(!fibril_rcu.registered);
-	
+
 	futex_down(&rcu.list_futex);
 	list_append(&fibril_rcu.link, &rcu.fibrils_list);
 	futex_up(&rcu.list_futex);
-	
+
 	fibril_rcu.registered = true;
 }
@@ -185,5 +185,5 @@
 {
 	assert(fibril_rcu.registered);
-	
+
 	/*
 	 * Forcefully unlock any reader sections. The fibril is exiting
@@ -194,5 +194,5 @@
 	memory_barrier();
 	fibril_rcu.nesting_cnt = 0;
-	
+
 	futex_down(&rcu.list_futex);
 	list_remove(&fibril_rcu.link);
@@ -209,7 +209,7 @@
 {
 	assert(fibril_rcu.registered);
-	
+
 	size_t nesting_cnt = ACCESS_ONCE(fibril_rcu.nesting_cnt);
-	
+
 	if (0 == (nesting_cnt >> RCU_NESTING_SHIFT)) {
 		ACCESS_ONCE(fibril_rcu.nesting_cnt) = ACCESS_ONCE(rcu.reader_group);
@@ -226,5 +226,5 @@
 	assert(fibril_rcu.registered);
 	assert(rcu_read_locked());
-	
+
 	/* Required by MB_FORCE_U */
 	compiler_barrier(); /* CC_BAR_U */
@@ -243,5 +243,5 @@
 {
 	assert(!rcu_read_locked());
-	
+
 	/* Contain load of rcu.cur_gp. */
 	memory_barrier();
@@ -249,7 +249,7 @@
 	/* Approximately the number of the GP in progress. */
 	size_t gp_in_progress = ACCESS_ONCE(rcu.cur_gp);
-	
+
 	lock_sync(blocking_mode);
-	
+
 	/*
 	 * Exit early if we were stuck waiting for the mutex for a full grace
@@ -264,7 +264,7 @@
 		return;
 	}
-	
+
 	++ACCESS_ONCE(rcu.cur_gp);
-	
+
 	/*
 	 * Pairs up with MB_FORCE_L (ie CC_BAR_L). Makes changes prior
@@ -272,5 +272,5 @@
 	 */
 	memory_barrier(); /* MB_A */
-	
+
 	/*
 	 * Pairs up with MB_A.
@@ -290,5 +290,5 @@
 	 */
 	force_mb_in_all_threads(); /* MB_FORCE_L */
-	
+
 	/*
 	 * Pairs with MB_FORCE_L (ie CC_BAR_L, CC_BAR_U) and makes the most
@@ -296,11 +296,11 @@
 	 */
 	read_barrier(); /* MB_B */
-	
+
 	size_t new_reader_group = get_other_group(rcu.reader_group);
 	wait_for_readers(new_reader_group, blocking_mode);
-	
+
 	/* Separates waiting for readers in new_reader_group from group flip. */
 	memory_barrier();
-	
+
 	/* Flip the group new readers should associate with. */
 	size_t old_reader_group = rcu.reader_group;
@@ -309,10 +309,10 @@
 	/* Flip the group before waiting for preexisting readers in the old group.*/
 	memory_barrier();
-	
+
 	wait_for_readers(old_reader_group, blocking_mode);
-	
+
 	/* MB_FORCE_U  */
 	force_mb_in_all_threads(); /* MB_FORCE_U */
-	
+
 	unlock_sync();
 }
@@ -333,13 +333,13 @@
 {
 	futex_down(&rcu.list_futex);
-	
+
 	list_t quiescent_fibrils;
 	list_initialize(&quiescent_fibrils);
-	
+
 	while (!list_empty(&rcu.fibrils_list)) {
 		list_foreach_safe(rcu.fibrils_list, fibril_it, next_fibril) {
 			fibril_rcu_data_t *fib = member_to_inst(fibril_it,
 				fibril_rcu_data_t, link);
-			
+
 			if (is_preexisting_reader(fib, reader_group)) {
 				futex_up(&rcu.list_futex);
@@ -354,5 +354,5 @@
 		}
 	}
-	
+
 	list_concat(&rcu.fibrils_list, &quiescent_fibrils);
 	futex_up(&rcu.list_futex);
@@ -366,7 +366,7 @@
 			blocked_fibril_t blocked_fib;
 			blocked_fib.id = fibril_get_id();
-				
+
 			list_append(&blocked_fib.link, &rcu.sync_lock.blocked_fibrils);
-			
+
 			do {
 				blocked_fib.is_ready = false;
@@ -375,5 +375,5 @@
 				futex_down(&rcu.sync_lock.futex);
 			} while (rcu.sync_lock.locked);
-			
+
 			list_remove(&blocked_fib.link);
 			rcu.sync_lock.locked = true;
@@ -392,5 +392,5 @@
 {
 	assert(rcu.sync_lock.locked);
-	
+
 	/*
 	 * Blocked threads have a priority over fibrils when accessing sync().
@@ -402,9 +402,9 @@
 	} else {
 		/* Unlock but wake up any fibrils waiting for the lock. */
-		
+
 		if (!list_empty(&rcu.sync_lock.blocked_fibrils)) {
 			blocked_fibril_t *blocked_fib = member_to_inst(
 				list_first(&rcu.sync_lock.blocked_fibrils), blocked_fibril_t, link);
-	
+
 			if (!blocked_fib->is_ready) {
 				blocked_fib->is_ready = true;
@@ -412,5 +412,5 @@
 			}
 		}
-		
+
 		rcu.sync_lock.locked = false;
 		futex_up(&rcu.sync_lock.futex);
@@ -432,5 +432,5 @@
 		thread_usleep(RCU_SLEEP_MS * 1000);
 	}
-		
+
 	futex_down(&rcu.sync_lock.futex);
 }
@@ -440,5 +440,5 @@
 {
 	size_t nesting_cnt = ACCESS_ONCE(fib->nesting_cnt);
-	
+
 	return is_in_group(nesting_cnt, group) && is_in_reader_section(nesting_cnt);
 }
