Mercurial > illumos > illumos-gate
changeset 11001:8bd1359d891b
6899182 hang in sd while importing a zfs pool
author | bo zhou - Sun Microsystems - Beijing China <Bo.Zhou@Sun.COM> |
---|---|
date | Mon, 09 Nov 2009 12:49:32 +0800 |
parents | 939a0e5586d1 |
children | e2b6058ff058 |
files | usr/src/uts/common/io/scsi/targets/sd.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/io/scsi/targets/sd.c Mon Nov 09 10:42:34 2009 +0800 +++ b/usr/src/uts/common/io/scsi/targets/sd.c Mon Nov 09 12:49:32 2009 +0800 @@ -22969,6 +22969,10 @@ * Get the current write cache state */ if ((err = sd_get_write_cache_enabled(ssc, &cur_wce)) != 0) { + mutex_enter(SD_MUTEX(un)); + un->un_f_wcc_inprog = 0; + cv_broadcast(&un->un_wcc_cv); + mutex_exit(SD_MUTEX(un)); break; }