svn commit: r346376 - stable/11/sys/dev/smartpqi
Konstantin Belousov
kib at FreeBSD.org
Tue Sep 3 14:07:09 UTC 2019
Author: kib
Date: Fri Apr 19 12:40:21 2019
New Revision: 346376
URL: https://svnweb.freebsd.org/changeset/base/346376
Log:
MFC r345964:
Remove single-use DEV_RESET() macro.
Modified:
stable/11/sys/dev/smartpqi/smartpqi_cam.c
stable/11/sys/dev/smartpqi/smartpqi_defines.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/smartpqi/smartpqi_cam.c
==============================================================================
--- stable/11/sys/dev/smartpqi/smartpqi_cam.c Fri Apr 19 12:38:48 2019 (r346375)
+++ stable/11/sys/dev/smartpqi/smartpqi_cam.c Fri Apr 19 12:40:21 2019 (r346376)
@@ -726,7 +726,7 @@ static int pqisrc_io_start(struct cam_sim *sim, union
return error;
}
/* Check device reset */
- if (DEV_RESET(dvp)) {
+ if (dvp->reset_in_progress) {
ccb->ccb_h.status = CAM_SCSI_BUSY | CAM_REQ_INPROG | CAM_BUSY;
DBG_WARN("Device %d reset returned busy\n", ccb->ccb_h.target_id);
return error;
Modified: stable/11/sys/dev/smartpqi/smartpqi_defines.h
==============================================================================
--- stable/11/sys/dev/smartpqi/smartpqi_defines.h Fri Apr 19 12:38:48 2019 (r346375)
+++ stable/11/sys/dev/smartpqi/smartpqi_defines.h Fri Apr 19 12:40:21 2019 (r346376)
@@ -382,8 +382,6 @@ enum pqisrc_ctrl_mode{
#define IS_AIO_PATH(dev) (dev->aio_enabled)
#define IS_RAID_PATH(dev) (!dev->aio_enabled)
-#define DEV_RESET(dvp) (dvp->reset_in_progress)
-
/* SOP data direction flags */
#define SOP_DATA_DIR_NONE 0x00
#define SOP_DATA_DIR_FROM_DEVICE 0x01
More information about the svn-src-stable-11
mailing list