RE: [PATCH v2] [SCSI] mpt2sas: fix double mutex lock in NON_BLOCKING state

2012-08-29 Thread Reddy, Sreekanth
t; Cc: Alexey Khoroshilov; linux-scsi@vger.kernel.org; Nandigama, > Nagalakshmi; Reddy, Sreekanth; linux-ker...@vger.kernel.org; ldv- > proj...@ispras.ru > Subject: [PATCH v2] [SCSI] mpt2sas: fix double mutex lock in > NON_BLOCKING state > > If state is NON_BLOCKING and mutex_try

[PATCH v2] [SCSI] mpt2sas: fix double mutex lock in NON_BLOCKING state

2012-08-28 Thread Alexey Khoroshilov
If state is NON_BLOCKING and mutex_trylock is succeed, the control flow goes to mutex_lock_interruptible() that is a deadlock. The previous version of the patch becomes obsolete after code movement in commit 913809f6. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: