Message ID | 20180323173633.kh5fwrfj6b5elki5@linutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
T24gRnJpLCAyMDE4LTAzLTIzIGF0IDE4OjM2ICswMTAwLCBTZWJhc3RpYW4gQW5kcnplaiBTaWV3 aW9yIHdyb3RlOg0KPiBUaGVyZSBhcmUgYSBmZXcgZnVuY3Rpb25zIHdoaWNoIGNoZWNrIGZvciBp ZiB0aGUgbG9jayBpcyBoZWxkDQo+IChzcGluX2xvY2tfYXNzZXJ0KCkpIGFuZCB0aGUgaW50ZXJy dXB0cyBhcmUgZGlzYWJsZWQgKGlycXNfZGlzYWJsZWQoKSkuDQo+ID4gRnJvbSBsb29raW5nIGF0 IHRoZSBjb2RlLCBlYWNoIGZ1bmN0aW9uIGlzIHN0YXRpYywgdGhlIGNhbGxlciBpcyBuZWFyIGJ5 DQo+IA0KPiBhbmQgZG9lcyBzcGluX2xvY2tfaXJxfHNhZmUoKS4gQXMgTGludXMgcHV0cyBpdDoN Cj4gDQo+ID4gSXQncyBub3QgbGlrZSB0aGlzIGlzIHNvbWUgZnVuY3Rpb24gdGhhdCBpcyBleHBv cnRlZCB0byByYW5kb20gdXNlcnMsDQo+ID4gYW5kIHdlIHNob3VsZCBjaGVjayB0aGF0IHRoZSBj YWxsaW5nIGNvbnZlbnRpb24gaXMgcmlnaHQuDQo+ID4gDQo+ID4gVGhpcyBsb29rcyBsaWtlICJp dCBtYXkgaGF2ZSBiZWVuIHVzZWZ1bCBkdXJpbmcgY29kaW5nIHRvIGRvY3VtZW50DQo+ID4gdGhp bmdzLCBidXQgaXQncyBub3QgdXNlZnVsIGxvbmctdGVybSIuDQo+IA0KPiBSZW1vdmUgdGhvc2Ug Y2hlY2tzLg0KDQpSZXZpZXdlZC1ieTogQmFydCBWYW4gQXNzY2hlIDxiYXJ0LnZhbmFzc2NoZUB3 ZGMuY29tPg0KDQoNCg0K -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c index 9c7bc1ca341a..3d35dad1de2c 100644 --- a/drivers/target/target_core_tmr.c +++ b/drivers/target/target_core_tmr.c @@ -114,8 +114,6 @@ static bool __target_check_io_state(struct se_cmd *se_cmd, { struct se_session *sess = se_cmd->se_sess; - assert_spin_locked(&sess->sess_cmd_lock); - WARN_ON_ONCE(!irqs_disabled()); /* * If command already reached CMD_T_COMPLETE state within * target_complete_cmd() or CMD_T_FABRIC_STOP due to shutdown, diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 74b646f165d4..2c3ddb3a4124 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -2954,9 +2954,6 @@ __transport_wait_for_tasks(struct se_cmd *cmd, bool fabric_stop, __acquires(&cmd->t_state_lock) { - assert_spin_locked(&cmd->t_state_lock); - WARN_ON_ONCE(!irqs_disabled()); - if (fabric_stop) cmd->transport_state |= CMD_T_FABRIC_STOP; @@ -3241,9 +3238,6 @@ static int __transport_check_aborted_status(struct se_cmd *cmd, int send_status) { int ret; - assert_spin_locked(&cmd->t_state_lock); - WARN_ON_ONCE(!irqs_disabled()); - if (!(cmd->transport_state & CMD_T_ABORTED)) return 0; /*