* Use of schedule() function while holding a lock in ql4_nx.c
@ 2016-09-12 5:19 Vaishali Thakkar
0 siblings, 0 replies; only message in thread
From: Vaishali Thakkar @ 2016-09-12 5:19 UTC (permalink / raw)
To: QLogic-Storage-Upstream, Martin K. Petersen, James E.J. Bottomley,
linux-scsi, linux-kernel
Hello,
I was wondering about the call to schedule in function qla4_82xx_crb_win_lock for driver
drivers/scsi/qla4xxx/ql4_nx.c. It is called in 2 functions [qla4_82xx_rd_32 and
qla4_82xx_wr_32] while holding a write_lock_irqsave. Normally we avoid using sleeping
functions while holding a lock.
Is there some reason that I am overlooking? Why it is OK in this case? Are we using
schedule() here intentionally?
Thank you.
--
Vaishali
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-12 5:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-12 5:19 Use of schedule() function while holding a lock in ql4_nx.c Vaishali Thakkar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).