mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 05:01:27 +00:00
scst_lib: Fix two lockdep_assert_held() statements
Fixes: 628f3939bc ("scst: Rework SCSI pass-through support for kernel versions >= 2.6.30") # r5979.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -8601,11 +8601,11 @@ static void scsi_end_async(struct request *req, blk_status_t error)
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
|
||||
lockdep_assert_held(req->q->queue_lock);
|
||||
lockdep_assert_held(&req->q->queue_lock);
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 21, 0) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 8)
|
||||
if (!req->q->mq_ops)
|
||||
lockdep_assert_held(req->q->queue_lock);
|
||||
lockdep_assert_held(&req->q->queue_lock);
|
||||
#endif
|
||||
|
||||
if (sioc->done) {
|
||||
|
||||
Reference in New Issue
Block a user