locking/rwsem: Fix comment on register clobbering
[linux-2.6-block.git] / arch / x86 / lib / rwsem.S
index a37462a23546f3da1620aa1a770b65a514f3d221..bf2c6074efd2fb97886d974dea2668f8da59c49c 100644 (file)
  * there is contention on the semaphore.
  *
  * %eax contains the semaphore pointer on entry. Save the C-clobbered
- * registers (%eax, %edx and %ecx) except %eax whish is either a return
- * value or just clobbered..
+ * registers (%eax, %edx and %ecx) except %eax which is either a return
+ * value or just gets clobbered. Same is true for %edx so make sure GCC
+ * reloads it after the slow path, by making it hold a temporary, for
+ * example see ____down_write().
  */
 
 #define save_common_regs \