217 F.3d 726 (9th Cir. 2000)
DENNIS N. JOHNSON; LEONARD TODEK, individually and on behalf of all others similarly situated; LAWRENCE E. COTTLE; JOHN PILAFAS, individually and on behalf of all others similarly situated; ROBB STEIR, individually and on behalf of all  others similarly situated; RODNEY WARNER, individually and on behalf of all others similarly situated; GARY ELMORE, individually and on behalf of all others  similarly situated; ELIAS GUTIERREZ, Plaintiffs-Appellants,v.SAMUEL LEWIS, former director of the ADOC in his individual capacity; TERRY  STEWART, Director of the ADOC in his official and individual capacity; BILL  GOTCHER, former warden of the ASP at Safford in his official and individual  capacity; GLENN DAVIS, Deputy Warden of ASP Safford in his official and  individual capacity; JOHN FOOTE, Deputy Warden of the ASP Safford in his official and individual capacity; JOHN ABBL, Captain DOC officer in his official  and individual capacity; CSO NATIONS, CSO MARCIAS, CSOII FLORES, SGT. HULL, DOC  officers in their official and individual capacities; BLACKIE HASSENZELLER,  Lieutenant, a member of the ADOC Tactical Support Unit in his official and  individual capacity; JOHN DOE 1-10, DOC officers in their official and  individual capacities; JOE HAWKINS; MATTHEW PROTO; MARK WILEY; DENNIS KILLA; JAMES BAHN; DWAYNE MORMAN; DENNIS GROGG; ROBERT STADLER; J.C. KENNEY, Defendants-Appellees.LEROY PATRICK BACA; TROY HAMILTON, individually and on behalf of all others similarly situated; PAUL LARGE, individually and on behalf of all others similarly situated; ERIC BAKER; LARRY G. HARPER, individually and on behalf of  all others similarly situated; VICTOR LAWRENCE FARBER, Jr., Plaintiffs-Appellants,v.TERRY STEWART, Director of the ADOC in his official and individual capacity;  BILL GOTCHER, former warden of the ASP Safford in his individual and official capacity; FRANK TERRY, deputy warden in charge of Tonto Unit in his official and  individual capacity; CSO ORTIZ, in his official and individual capacity; JOHN  BBL, Captain in his official and individual capacity; CSO THOMPSON, in his  official and individual capacity; AMARILLUS, Sergeant in his official and individual capacity; JOHN DOE 1-10, CSOs in their official and individual  capacity; CSO THOMPSON; MATTHEW PROTO; DENNIS GROGG; DARREN MCWHORTER, CSOII; ARMANDO AMARILLAS; DWAYNE MORMAN, Defendants-Appellees.
No. 98-16821, No. 98-16851
U.S. Court of Appeals for the Ninth Circuit
Argued and Submitted December 9, 1999--San Francisco, California
Filed June 29, 2000

[Copyrighted Material Omitted]
Paul Gattone, Southern Arizona People's Law Center, Tucson, Arizona,  for the plaintiffs-appellants.
Bruce L. Skolnik, Assistant Attorney General, Tucson, Arizona, for the  defendants-appellees. OPINION
Appeals from the United States District Court for the District of Arizona; Frank R. Zapata, District Judge, Presiding.  D.C. Nos. CV-96-00463-FRZ, V-96-00464-FRZ
Before: Joseph T. Sneed, Harry Pregerson, and William A. Fletcher, Circuit Judges.
Opinion by Judge W. FLETCHER; Dissent by Judge SNEED.
W. FLETCHER, Circuit Judge:


1
These class actions arose from two disturbances in the Arizona State Prison in Safford, Arizona: one in August 1995 and the other in December of the same year. Although the district court resolved the cases separately, we consolidate them because they are factually similar and present identical legal issues. In each case, prison officials quelled the disturbance and then held all of the inmates in the affected unit out-of-doors while they investigated the incident and searched the prison buildings. The appellants, two classes of plaintiffs consisting of the inmates who were held outside, brought class actions against Arizona prison officials under 42 U.S.C. S 1983, asserting that the conditions under which they were held violated the Eighth Amendment's prohibition against cruel and unusual punishment. The district court granted summary judgment for the defendant prison officials in each case. We conclude that unresolved issues of fact preclude summary judgment in both cases. We therefore reverse and remand.


2
* Because these cases were resolved at summary judgment, we relate the facts in the light most favorable to the prisoners as the non-moving parties. See Holmes v. California Army Nat'l Guard, 124 F.3d 1126, 1132 (9th Cir. 1997).


3
On August 14, 1995, the Graham Unit of the Arizona State Prison in Safford, Arizona housed 638 inmates. One hundred of these prisoners lived in tents; the rest were housed in permanent dormitories. Dissatisfied with the conditions in the tents, some of the inmates began setting fire to the tents and nearby structures, throwing rocks and cans, and wielding other makeshift weapons shortly after 7:00 p.m.


4
The prison's Tactical Support Unit (TSU) responded to the disturbance. Officials used the public address system to order all non-participating inmates to assemble at a designated location, but only 21 inmates reported. The TSU entered the prison yard at 8:30 p.m. Over the next several hours, it was able to restore order and regain control of the facility using non-lethal weapons. By 11:15 p.m., the TSU had evacuated all of the remaining buildings, had accounted for each of the 638 inmates, and was holding them handcuffed, shackled, and lying face-down on the ground in a central location in the prison yard.


5
Prison officials continued to hold the inmates handcuffed and prone, though no longer shackled, in the prison yard while they conducted an investigation of the disturbance. Until the riot participants could be identified, officials considered holding the inmates in the easily secured prison yard to be the safest alternative. Placing inmates back inside the eight dormitories would have fragmented staff and allowed inmates access to objects, possibly including shanks, that could be used to cause injury. No single building was large enough to hold all of the inmates except the Multi-Purpose Building, which housed a basketball court and had only one entrance. Although this building would have provided shelter, prison officials considered it too dangerous to use under the circumstances because housing the entire inmate population in a space of that size would have created crowded conditions and thwarted their need to maintain complete physical control over the prisoners in the wake of the riot.


6
While the prisoners waited in the yard, eleven investigators worked around the clock to interview each inmate individually. Other officials conducted an exhaustive search of the entire unit, including all of the living spaces and each prisoner's personal locker, for weapons and other contraband. The investigation lasted four days.


7
During those four days, the prisoners in the yard were exposed to the elements. The weather was humid, and the peak afternoon temperatures ranged up to 94degrees, with nighttime lows around 70 degrees. Prison officials responded to the heat by "misting" the inmates with fire hoses. On the third day, officials distributed 36 bottles of sunscreen among the more than 600 inmates. Nonetheless, during one threehour period on August 17, thirteen inmates required treatment for heat-related medical problems. The inmates were not provided with blankets or other coverings during the night. It rained during the night of August 16, but the inmates were given no means of shelter.


8
During some of the inmates' time in the yard, prison officials provided no toilet facilities. For the first night, inmates were not allowed to move from a prone position for any reason, even to relieve themselves. Sometime during the morning of August 15, two portable toilets were brought onto the yard. By then, some of the inmates had urinated or defecated into their clothing, which they would wear for the rest of the time in the yard. According to the inmates, the two portable toilets could not meet the demand of so many prisoners and were often unusable, despite periodic servicing. Sometime later on August 15, the situation improved when a few of the institution's indoor toilet facilities that had been damaged during the riot were repaired and made available to the inmates.


9
For each meal, the inmates received sack lunches consisting of bologna sandwiches, milk, and an orange, but, according to the plaintiffs' deposition testimony, these lunches were routinely left in the sun for several hours before they were distributed, spoiling the meat and making much of the meal inedible. The inmates also claim that they received no drinking water until well into the second day, and that their access to drinking water was restricted thereafter. At the conclusion of the four-day riot investigation, the inmates were returned to their living quarters, and normal prison conditions were reestablished.


10
Several months later, on the evening of December 28, 1995, another disturbance erupted in a different unit of the Safford prison. Shortly before 6:00 p.m., between 70 and 80 of the 369 inmates in the Tonto Unit began fighting, throwing rocks, and destroying property. Again the TSU was successfully deployed, and it quickly regained control of the Unit. At 8:00 p.m., the TSU began evacuating the buildings of inmates and bringing them outdoors to the ballfield, where they were made to lie on the ground in handcuffs and ankle restraints.  By midnight, all 369 inmates were lying prone on the ground. As they had in the aftermath of the Graham Unit disturbance, prison officials left the prisoners outdoors while they searched the buildings and tried to identify those inmates who had participated in the riot. This time, the officials' investigation lasted 17 hours.


11
During the hours the inmates spent outside, the temperature fell to 22 degrees. They were forced to lie on the ground in whatever clothing they had been wearing when the TSU cleared their buildings. When the inmates needed to urinate, the guards allowed them to get to their knees, crawl a few feet from where they lay, and relieve themselves on the ground. Because of their close proximity to each other, inmates sometimes urinated on their neighbors; even when they did not, the urine sometimes pooled and ran onto other inmates. At around 5:00 a.m., the guards briefly allowed the inmates to get to their feet to try to restore circulation and to relieve the pain and cramping they were experiencing in the cold. A few minutes later, the guards ordered the inmates to get back on the ground. When some of the prisoners refused, the guards forced compliance with tear gas, stinger balls, and knee knockers. Once the inmates were again on the ground, the guards assigned a few of them to enter the dormitories and get blankets for the rest.


12
By midday on December 29, the prison officials had concluded their investigationand identified the instigators of the disturbance. Officials began returning the inmates to their dormitories around 1:00 p.m.


13
The 638 inmates incarcerated in the Graham Unit during the August 1995 riot and its aftermath filed a class action against Arizona prison officials in federal district court under 42 U.S.C. S 1983. Inmate Dennis Johnson is the lead plaintiff for the Graham Unit class. The 369 Tonto Unit inmates involved in the December 1995 incident filed a similar class action, for which inmate Leroy Baca is the lead plaintiff. Each complaint alleges that the defendant prison officials subjected the plaintiff class to unconstitutional conditions in the prison yard.


14
On August 26, 1998, the district court entered orders granting summary judgment for the defendants in each action. The district court concluded that, because prison officials had provided some food, drinking water, sanitation, medical care, and protection from the elements during the four days that the Graham Unit prisoners were held outdoors, the Johnson class had failed to provide evidence of sufficient harm to trigger the protections of the Eighth Amendment. Similarly, the court held that, because some of the Tonto Unit prisoners were dressed in jackets, hats, and gloves; because all of the inmates eventually received blankets; and because the inmates were subjected to cold temperatures for only one night, the Baca class also had failed to demonstrate sufficient harm to violate the Eighth Amendment.


15
Timely appeals were taken. We have jurisdiction to review the judgments of the district court under 28 U.S.C.S 1291, and we reverse.

II

16
The Eighth Amendment prohibits cruel and unusual punishment of a person convicted of a crime. U.S. Const. amend. VIII. The Amendment has not been restricted to cases challenging the length of a sentence or the nature of a punishment. Where the conditions of confinement are challenged rather than the confinement itself, a plaintiff must make two showings. First, the plaintiff must make an "objective" showing that the deprivation was "sufficiently serious" to form the basis for an Eighth Amendment violation. Wilson v. Seiter, 501 U.S. 294, 298 (1991). Second, the plaintiff must make a "subjective" showing that the prison official acted "with a sufficiently culpable state of mind." Id. The district court in these cases did not reach the question of the second required showing because, in its view, the deprivations alleged by the plaintiff classes were not sufficiently serious to violate the Eighth Amendment.


17
Although the routine discomfort inherent in the prison setting is inadequate to satisfy the objective prong of an Eighth Amendment inquiry, "those deprivations denying `the minimal civilized measure of life's necessities' are sufficiently grave to form the basis of an Eighth Amendment violation." Id. (quoting Rhodes v. Chapman, 452 U.S. 337, 347 (1981)). Prison officials have a duty to ensure that prisoners are provided adequate shelter, food, clothing, sanitation, medical care, and personal safety. See Farmer v. Brennan, 511 U.S. 825, 832 (1994); Keenan v. Hall, 83 F.3d 1083, 1089 (9th Cir. 1996); Hoptowit v. Ray, 682 F.2d 1237, 1246 (9th Cir. 1982).


18
The circumstances, nature, and duration of a deprivation of these necessities must be considered in determining whether a constitutional violation has occurred. "The more basic the need, the shorter the time it can be withheld." Hoptowit, 682 F.2d at 1259; see also Anderson v. County of Kern, 45 F.3d 1310, 1314, as amended, 75 F.3d 448 (9th Cir. 1995) ("[A] lack of sanitation that is severe or prolonged can constitute an infliction of pain within the meaning of the Eighth Amendment.").For example, the Eighth Circuit found that the Eighth Amendment had been violated where prison officials required inmates to remain outdoors in subfreezing temperatures for less than two hours, even though the inmates were provided with hip-length, lined denim coats and allowed to move freely. See Gordon v. Faber, 973 F.2d 686, 687 (8th Cir. 1992). Similarly, we have suggested that depriving an inmate of a jacket could violate the Eighth Amendment under some weather conditions. See Walker v. Sumner, 14 F.3d 1415, 1421 (9th Cir. 1994). More modest deprivations can also form the objective basis of a violation, but only if such deprivations are lengthy or ongoing. See Keenan, 83 F.3d at 1090-91.


19
The relatively brief amounts of time the members of the plaintiff classes spent in the prison yard in these cases preclude them from stating Eighth Amendment claims for minor deprivations. These plaintiffs, however, provide evidence of substantial deprivations of shelter, food, drinking water, and sanitation. This evidence, if believed, shows harm of sufficient magnitude to satisfy the objective prong of an Eighth Amendment violation.


20
The Johnson plaintiffs provide sworn deposition testimony and affidavits that they did not receive protection from the elements sufficient to ward off heat-related illnesses. They testified that they received inedible food and inadequate drinking water for four days. They also testified that they did not receive adequate access to toilets to avoid soiling themselves, and they were not allowed to clean themselves thereafter. If believed, this evidence would establish deprivations sufficiently serious to satisfy the objective component of an Eighth Amendment claim.


21
The state has provided videotape evidence demonstrating that, repeatedly during the four days, some of the Johnson plaintiffs did receive food, drinking water, sunscreen, "misting," and access to toilets. This videotape evidence is important and may eventually be dispositive in favor of the state. At this stage of the litigation, however, it does not overcome the plaintiffs' evidence. Establishing that some needs of some plaintiffs were met at some times during the four days does not establish that the plaintiffs received adequate edible food and adequate amounts of drinking water, that the sunscreen or "misting" provided sufficient protection from the sun and heat, or that the sanitation was adequate. Drawing all reasonable inferences from the evidence in favor of the non-moving parties, as we must, see Wong v. Regents of the Univ. of Cal., 192 F.3d 807, 817 (9th Cir. 1999), we conclude that the videotape falls short of negating the prisoners' claims. See Nissan Fire & Marine Ins. Co., Ltd. v. Fritz Cos., Inc., 210 F.3d 1099, 1106 (9th Cir. 2000). The actual conditions to which the Johnson plaintiffs were subjected on the prison yard are therefore disputed questions of material fact that cannot be resolved at summary judgment. See Fed. R. Civ. P. 56(c).


22
The Baca plaintiffs also provide sufficient evidence of substantial deprivations of basic human needs to withstand summary judgment. They testify principally to exposure to subfreezing temperatures and the lack of access to toilets. As in Johnson, the state supplied a videotape of the inmates on the prison yard. The videotape shows some prisoners wearing jackets and gloves. Viewed in the light most favorable to the plaintiffs, however, the videotape establishes no more than that some, but not all, members of the plaintiff class were wearing winter clothing. The state also maintains that providing the prisoners with blankets in the early morning adequately protected them from the cold, but it is undisputed that the blankets were not distributed until the inmates had been lying motionless in the dirt in subfreezing temperatures for five to nine hours. The extent and adequacy of the protection the inmates received from the cold is therefore a disputed question offact. Moreover, although we have no doubt that toilets can be unavailable for some period of time without violating the Eighth Amendment, the plaintiffs in this case testify that the state imposed conditions inescapably resulting in prisoners wetting each other with urine. This evidence, if believed, would allow a fact-finder to conclude that the plaintiffs suffered a sufficiently serious deprivation to violate the Eighth Amendment.

III

23
In addition to a sufficiently serious objective harm, an Eighth Amendment violation requires a showing that the subjective state of mind of the prison officials was culpable. See Wilson, 501 U.S. at 298-99. The state-of-mind requirement is not constant, but instead varies with the circumstances of the claim.


24
In Estelle v. Gamble, 429 U.S. 97 (1976), the Supreme Court determined that "deliberate indifference " to prisoners' serious medical needs violates the Eighth Amendment. Id. at 105. The deliberate indifference standard requires the plaintiff to prove that "the official knows of and disregards an excessive risk to inmate health or safety . . . ." Farmer v. Brennan, 511 U.S. 825, 837 (1994).


25
Ten years later, when confronted with materially different circumstances, the Court departed from the "deliberate indifference" standard it had established in Estelle. In Whitley v. Albers, 475 U.S. 312 (1986), the Court refused to find a violation of the Eighth Amendment where prison officials had shot an inmate while they tried to rescue a guard held hostage during a riot, despite the fact that prison officials had clearly shown deliberate indifference to that inmate's safety. Explaining that the state-of-mind requirement is context-dependent, the Court held:


26
Where a prison security measure is undertaken to resolve a disturbance, such as occurred in this case, that indisputably poses significant risks to the safety of inmates and prison staff, we think the question whether the measure taken inflicted unnecessary and wanton pain and suffering ultimately turns on whether the force was applied in a good faith effort to maintain or restore discipline or maliciously and sadistically for the very purpose of causing harm.


27
Id. at 320-21 (internal citations omitted). In emergency circumstances, such as those that exist during a prison uprising, where prison officials must weigh the competing institutional interests of ensuring the safety of staff, visitors, and inmates, and where life-and-death decisions must be made quickly, the Court found that the deliberate indifference standard does not "adequately capture the importance of such competing obligations, or convey the appropriate hesitancy to critique in hindsight decisions necessarily made in haste, under pressure, and frequently without the luxury of a second chance. " Id. at 320.


28
In contrast, where inmates challenge the conditions of confinement, the Court has applied the deliberate indifference standard rather than the heightened Whitley standard. See Wilson, 501 U.S. at 303. The Court in Wilson reasoned that the emergency circumstances facing prison officials while quelling a disturbance would, as a general matter, be absent when officials decided such matters as what sort of food to supply, the temperature at which to keep the prison cells, and the kind of clothing to issue. See id.


29
In the cases now before us, the district court did not resolve the question of the prison officials' mental state because it incorrectly held that the prisoners could not prove a sufficiently serious objective harm. But the district court did explain its view, in reliance on Whitley, "that a heightened standard of deference applies to the post-riot actions taken by the prison officials immediately after the riot, althoughit may be less than the standard applied in the face of immediately exigent circumstances."


30
In our view, the exigent circumstances the prison officials faced during the riots persisted until the officials were able successfully to remove the prisoners from the buildings and secure them in the prison yard. The prison officials' actions and accompanying state of mind should therefore be measured against the Whitley standard for an Eighth Amendment violation until that point. Under the Whitley standard, those actions did not violate the Eighth Amendment because the officials were motivated by the sorts of penological and safety concerns which are committed to the discretion of prison officials and to which we give considerable deference.


31
When the inmates were in the yard, however, they were handcuffed, prone, and under armed guard. In these circumstances, the inmates presented no further danger to prison staff, the public, or each other, and prison officials were no longer required to make split-second, life-and-death decisions. Once the inmates were thus secured in the yard, the state-of-mind requirement that sufficed to show an Eighth Amendment violation was deliberate indifference.


32
In Farmer, the Supreme Court held that to act with deliberate indifference, an official must have actual knowledge of an excessive risk to inmate health or safety and must deliberately disregard that risk. See 511 U.S. at 837. In these cases, the plaintiffs must show that the defendant officials had actual knowledge of the plaintiffs' basic human needs and deliberately refused to meet those needs. Whether an official possessed such knowledge "is a question of fact subject to demonstration in the usual ways, including inference from circumstantial evidence . . . ." Id. at 842.


33
In the cases before us, a fact-finder could conclude, based on the evidence presented by the plaintiffs seen in its most favorable light, that the defendant prison officials had actual knowledge of the inmates' exposure to the elements and need for sanitation, edible food, and adequate drinking water, and that they intentionally disregarded these conditions. In the Johnson case, inmate Johnson testified in his deposition that he heard defendant Sam Lewis, the Director of the Department of Corrections, say, "Keep them down for four days at least." He also heard guards saying "Let's keep them down, let's hurt them." In his deposition, then-Deputy Warden Glen Davis admitted that officials determined on the night of the riot -before they could know how long the investigation would take -to keep the inmates outdoors for at least three days. Davis also wrote a post-incident report in which he noted that the inmates now "have a clear understanding from this incident that type of behavior will not be tolerated. Life was not good for these inmates. They are now clear on who is administering the Institution, the consequences forthcoming from their actions and the absolute power of our Tactical Support Units." From this evidence, a finder of fact could conclude that the defendants deliberately ignored, perhaps even intentionally imposed, the sorts of conditions the Johnson plaintiffs claim to have experienced during their four days in the prison yard.


34
The Baca plaintiffs present similar evidence. Inmate Victor Farber provides an affidavit in which he relates that the inmates were so cold by the time of the renewed disturbance at 5:00 a.m. that some of them asked to be shot, and "Officer Ortiz laughed at the inmates [and] said, `If we shoot you with these guns you wont [sic] get to go to the hospital -you'll just lay there in pain.' " Inmate Larry Harper relates hearing a guard say that "he thought we deserved the treatment we received, if a few people cause a disturbance everyone will suffer, that he received a lot of overtime and that we should have been left out there for two weeks."Inmate Baca testifies that Deputy Warden Terry threatened to keep the inmates outside for seven days if there were any more disturbances. Inmate Large testified in his deposition that he remembered a guard telling him that the prisoners "could go to the bathroom in [their] pants and [they] could freeze."

IV

35
The Eighth Amendment does not tolerate prison officials' deliberate indifference, in the absence of exigent circumstances, to substantial deprivations of adequate shelter, food, drinking water, and sanitation. Because the plaintiff classes present evidence that, if believed by a fact-finder, would demonstrate that the defendant prison officials deliberately failed to rectify severe deprivations of basic human necessities of which they had actual knowledge, summary judgment for defendants was improperly granted.


36
We REVERSE and REMAND these cases for further proceedings consistent with this opinion.

SNEED, Circuit Judge, Dissenting:

37
"[O]nly the unnecessary and wanton infliction of pain . . . constitutes cruel and unusual punishment forbidden by the Eighth Amendment." Whitley v. Albers, 475 U.S. 312, 319 (1986). In these cases, the deprivations of shelter were necessary and the alleged deprivations of adequate food, water and sanitation were not wanton. I therefore dissent.

Shelter

38
It is well-settled that "[p]rison officials should be accorded wide-ranging deference in the adoption and execution of policies and practices that in their judgment are needed to preserve internal order and discipline to maintain institutional security." Whitley, 475 U.S. at 322 (citing Bell v. Wolfish, 441 U.S. 520, 547 (1979) (emphasis added). Indeed, we have held that "prison officials have a right and a duty to take the necessary steps to reestablish order in a prison when such order is lost." Hoptowit v. Ray, 682 F.2d 1237, 1259 (9th Cir. 1982) (emphasis added). The deference accorded to prison officials "extends to a prison security measure taken in response to an actual confrontation with riotous inmates, just as it does to prophylactic or preventive measures intended to reduce the incidence of these or any other breaches of prison discipline." Whitley, 475 U.S. at 322. "It does not insulate from review actions taken in bad faith and for no legitimate purpose, but it requires that neither judge nor jury freely substitute their judgment for that of officials who have made a considered choice." Id.


39
The prison officials made considered choices that penological and safety concerns mandated that inmates be kept outdoors during the investigations of the riots. The decisions were necessary steps to reestablish order in the prisons where order had been lost. The prisoners in both of these cases rioted and caused significant damage to the prison facilities. In Johnson, the rioters set fires to their own dwellings, including tents and dormitories, and various buildings that housed offices and other facilities, including records, mail and property, security, programs, education, the law library, and the church. The tents and buildings were destroyed in their entirety. In all, the rioting inmates destroyed State property worth over one million dollars. Similarly in Baca, a group of 70-80 inmates engaged in widespread fighting, throwing rocks, and breaking fire extinguishers and windows.


40
In both cases, the prison officials believed it necessary to keep the inmates together until the riot participants could be segregated from the non-participants. The officials properly chose to keep the inmates outdoors in a large unobstructed field. No safe indoor facilities were available; the ability of prisoners to obtainpotential weapons was greatly reduced; and it enabled the officers to guard the inmates from a safe distance. These objectives were neither illegitimate nor does the evidence suggest that their decisions were made in bad faith. Therefore, these decisions are entitled to extensive deference. We should not at this distance freely substitute our judgment for theirs.


41
Our deference of course has limits. A line must be drawn somewhere. For example, bad faith might be presumed in the absence of extraordinary circumstances if prison officials asserted that inmates needed to be maintained in this position for months. Four days, however, is relatively brief and not an unreasonable length of time to restore order to a prison following a riot. Cf. Hoptowit, 682 F.2d at 1259 (lockdown after riot lasted at least three weeks). Thus, in these cases, the deprivations of shelter were for reasonable periods of time, during which the prison officials made considered choices consistent with sound penological and safety concerns.

Food, Water and Sanitation

42
The alleged deprivation of adequate food, water and shelter was not wanton. Whether conduct can be characterized as " `wanton' depends upon the constraints facing the official." Wilson v. Seiter, 501 U.S. 294, 303 (1991). The general rule is that a prison official acts wantonly with respect to supplying inadequate food, water and shelter if he has actual knowledge of an excessive risk to inmate health or safety and deliberately disregards that risk. See Farmer v. Brennan, 511 U.S. 825, 837 (1994) (articulating the "deliberate indifference" standard). There is an "emergency exception" to the general rule that applies to these cases. It provides that when prison officials are confronted with constraints "materially different" than those they generally face, wantonness consists of acting "maliciously and sadistically for the very purpose of causing harm." Wilson, 501 U.S. at 302-03. Here, during the time that the inmates were being held outdoors the prison officials were faced with constraints "materially different" than those they generally face. The proper inquiry, therefore, is whether the alleged deprivations were done maliciously and sadistically for the very purpose of causing harm. They were not.


43
The exhaustive videotape evidence shows that, despite the unusual situation confronting the prison officials, they attempted to provide the inmates with adequate food, water and sanitation during the entire time the inmates were being held outside. For example, two portable toilets were brought into the yard the morning after the riots in Johnson. The complaint alleges that this was too late because some inmates had already urinated or defecated into their clothing by that time. The officials were quite aware that it was necessary to acquire portable toilets that evening and were able to get them on-site the very next day. They did not act maliciously and sadistically for the very purpose of causing harm. Rather, because of the rioting, they were reacting to a situation materially different than what they would normally encounter on a day to day basis.


44
The complaint properly alleges that the two portable toilets could not meet the demand of so many prisoners and were often unusable despite periodic servicing. However, sanitation was so limited for only one morning. By the afternoon after the riot, the prison officials had repaired and made available some of the indoor toilets that had been damaged during the riots. The prison officials did not act maliciously and sadistically by providing only two portable toilets during the morning after the riot while the permanent facilities were rapidly being repaired.


45
The inmates alleged that the food was inadequate because it was left in the sun for several hours prior to distribution. This, at best, is doubtful. Several hours inthe sun usually does not render a sack lunch inedible. Nevertheless, even were it true that the lunches were "inedible" due to a delay, the delay was partially a consequence of being forced to pass out sack lunches to over 600 inmates while maintaining security. Moreover, it should be irrefutable that one who has substantially disrupted a restaurant should not complain about the service being slow.


46
The inmates also claimed, despite videotape evidence showing water routinely being provided to the inmates throughout their time in the yard, that they did not have adequate access to water. The majority simply dismisses the videotape evidence by saying that it merely shows that many inmates, but not necessarily all, received water. No doubt some inmates got water before others. Also, it is likely that the water service was slow. Nonetheless, there is no showing that the distribution of water discriminated between the participants and the non-participants in the riots.


47
In sum, the complaints do not show that the prison officials acted maliciously or sadistically for the very purpose of causing harm. At most the evidence shows that the temporary conditions following the riots was not perfect. How could it have been otherwise? The majority simply ignores the constraints the prison officials were faced with and presumes that conditions should have been normal the moment the officials "were able successfully to remove the prisoners from the buildings and secure them in the prison yard." Maj. Op. 734. This approach is unrealistic because it improperly holds the prison officials to a standard of conduct that will be difficult for them to meet. Accordingly, I dissent.

