From c8392145fa0fb37cacac09c192a05b76af04c789 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Tue, 11 Oct 2011 03:13:18 +0000 Subject: [PATCH] Reverse r3894, because it is incorrect. There is no order dependency between CPUs here, so there's no need in the corresponding fence command. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3896 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 49678438f..eda154eff 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -4438,8 +4438,7 @@ static int vdev_sysfs_process_get_filename(struct scst_sysfs_work_item *work) * under scst_vdisk_mutex. */ while (!mutex_trylock(&scst_vdisk_mutex)) { - smp_mb(); - if (dev->dev_unregistering) { + if ((volatile bool)(dev->dev_unregistering)) { TRACE_MGMT_DBG("Skipping being unregistered dev %s", dev->virt_name); res = -ENOENT;