Date: Thu, 9 Apr 2015 15:40:50 +0530 From: Sibananda Sahu <sibananda.sahu@avagotech.com> To: freebsd-bugs@freebsd.org Subject: scsi_scan_bus in FreeBSD 10.1 has mutex unlock and lock swapped Message-ID: <2fa5e95f922badfba3ccf4dfd96e524e@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, Recently I was working with mpslsi3 driver and found that the system just crashed at xpt_action() call. The same driver code is working just fine with other versions of FreeBSD. After digging a little into the CAM layer code I found that: inside scsi_scan_bus()at line number: 1935 first mutex_unlock(mtx) is called and then at line 1974 called mtx_lock(mtx) just before exiting the XPT_SCAN_BUS case. I just swapped the calls and called mutex_lock() first and then called mutex_unlock() and found there is no kernel panic. Driver was loaded just fine but after a while I was unable to operate the system. But pinging to the system was working and the system was up. Is it OK or it looks to be a bug? Thanks, Sibananda Sahu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2fa5e95f922badfba3ccf4dfd96e524e>