On Fri, 2009-10-09 at 14:53 +0530, Penchala Narasimha Reddy Chilakala, TLS-Chennai wrote: > Hi James and linux-scsi community, > > Can you please let us know your feedback on my response to the queries > raised by James so that I will proceed further based on your feedback? Sorry, press of conferences has delayed me getting around to looking at this. The patch is spitting this compile warning: drivers/scsi/aacraid/commsup.c: In function 'aac_fib_send': drivers/scsi/aacraid/commsup.c:539: warning: ignoring return value of 'down_interruptible', declared with attribute warn_unused_result Because of this hunk: @@ -515,15 +535,14 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned } udelay(5); } - } else if (down_interruptible(&fibptr->event_wait)) { - fibptr->done = 2; - up(&fibptr->event_wait); - } + } else + down_interruptible(&fibptr->event_wait); The reason for the warning is that down_interruptible() will return an error if it gets interrupted without acquiring the semaphore, and the kernel checkers believe you can't write correct code without knowing whether you acquired the semaphore or not. Now, the original use case didn't care it was just waiting for the semaphore to become available but didn't actually want to acquire it, so I suspect what you want is: } else if (down_interruptible(&fibptr->event_wait)) up(&fibptr->event_wait); If you suddenly do care about acquiring the semaphore, you need to do something about the interrupted failure case. James -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html